Skip to content

Commit

Permalink
Use default exports
Browse files Browse the repository at this point in the history
  • Loading branch information
delbaoliveira committed Oct 10, 2023
1 parent d2d071c commit d674ac0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { fetchInvoiceById, fetchCustomerNames } from '@/app/lib/data';
import { notFound } from 'next/navigation';
import Form from '@/app/ui/invoices/edit-form';
import { Breadcrumbs } from '@/app/ui/invoices/breadcrumbs';
import Breadcrumbs from '@/app/ui/invoices/breadcrumbs';

export default async function Page({ params }: { params: { id: string } }) {
const id = params.id;
Expand Down
2 changes: 1 addition & 1 deletion dashboard/15-final/app/dashboard/invoices/create/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { fetchCustomerNames } from '@/app/lib/data';
import Form from '@/app/ui/invoices/create-form';
import { Breadcrumbs } from '@/app/ui/invoices/breadcrumbs';
import Breadcrumbs from '@/app/ui/invoices/breadcrumbs';

export default async function Page() {
const customerNames = await fetchCustomerNames();
Expand Down
6 changes: 5 additions & 1 deletion dashboard/15-final/app/ui/invoices/breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ interface Breadcrumb {
active?: boolean;
}

export function Breadcrumbs({ breadcrumbs }: { breadcrumbs: Breadcrumb[] }) {
export default function Breadcrumbs({
breadcrumbs,
}: {
breadcrumbs: Breadcrumb[];
}) {
return (
<nav aria-label="Breadcrumb" className="mb-6 block">
<ol className={clsx(lusitana.className, 'flex text-xl md:text-2xl')}>
Expand Down

0 comments on commit d674ac0

Please sign in to comment.