From 386dd877da125db82bc56d2bf8e9051b83d9fbd5 Mon Sep 17 00:00:00 2001 From: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com> Date: Mon, 30 Oct 2023 15:32:54 +0000 Subject: [PATCH] Use absolute imports (#309) --- dashboard/final-example/app/ui/customers/table.tsx | 2 +- dashboard/final-example/app/ui/dashboard/sidenav.tsx | 2 +- dashboard/final-example/app/ui/invoices/edit-form.tsx | 2 +- dashboard/starter-example/app/ui/customers/table.tsx | 2 +- dashboard/starter-example/app/ui/invoices/create-form.tsx | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dashboard/final-example/app/ui/customers/table.tsx b/dashboard/final-example/app/ui/customers/table.tsx index eaabfd6..7ca6b36 100644 --- a/dashboard/final-example/app/ui/customers/table.tsx +++ b/dashboard/final-example/app/ui/customers/table.tsx @@ -1,6 +1,6 @@ import Image from 'next/image'; import { lusitana } from '@/app/ui/fonts'; -import Search from '../search'; +import Search from '@/app/ui/search'; import { CustomersTable, FormattedCustomersTable } from '@/app/lib/definitions'; export default async function CustomersTable({ diff --git a/dashboard/final-example/app/ui/dashboard/sidenav.tsx b/dashboard/final-example/app/ui/dashboard/sidenav.tsx index 11f0408..1ad2ae2 100644 --- a/dashboard/final-example/app/ui/dashboard/sidenav.tsx +++ b/dashboard/final-example/app/ui/dashboard/sidenav.tsx @@ -1,6 +1,6 @@ import Link from 'next/link'; import NavLinks from '@/app/ui/dashboard/nav-links'; -import AcmeLogo from '../acme-logo'; +import AcmeLogo from '@/app/ui/acme-logo'; import { PowerIcon } from '@heroicons/react/24/outline'; import { signOut } from '@/auth'; diff --git a/dashboard/final-example/app/ui/invoices/edit-form.tsx b/dashboard/final-example/app/ui/invoices/edit-form.tsx index 2bf61ca..11e5112 100644 --- a/dashboard/final-example/app/ui/invoices/edit-form.tsx +++ b/dashboard/final-example/app/ui/invoices/edit-form.tsx @@ -8,7 +8,7 @@ import { UserCircleIcon, } from '@heroicons/react/24/outline'; import Link from 'next/link'; -import { Button } from '../button'; +import { Button } from '@/app/ui/button'; import { updateInvoice } from '@/app/lib/actions'; import { useFormState } from 'react-dom'; diff --git a/dashboard/starter-example/app/ui/customers/table.tsx b/dashboard/starter-example/app/ui/customers/table.tsx index eaabfd6..7ca6b36 100644 --- a/dashboard/starter-example/app/ui/customers/table.tsx +++ b/dashboard/starter-example/app/ui/customers/table.tsx @@ -1,6 +1,6 @@ import Image from 'next/image'; import { lusitana } from '@/app/ui/fonts'; -import Search from '../search'; +import Search from '@/app/ui/search'; import { CustomersTable, FormattedCustomersTable } from '@/app/lib/definitions'; export default async function CustomersTable({ diff --git a/dashboard/starter-example/app/ui/invoices/create-form.tsx b/dashboard/starter-example/app/ui/invoices/create-form.tsx index c86678c..187962c 100644 --- a/dashboard/starter-example/app/ui/invoices/create-form.tsx +++ b/dashboard/starter-example/app/ui/invoices/create-form.tsx @@ -8,7 +8,7 @@ import { CurrencyDollarIcon, UserCircleIcon, } from '@heroicons/react/24/outline'; -import { Button } from '../button'; +import { Button } from '@/app/ui/button'; export default function Form({ customers }: { customers: CustomerField[] }) { return (