diff --git a/dashboard/15-final/app/dashboard/layout.tsx b/dashboard/15-final/app/dashboard/layout.tsx index 0eb56e6..d4fd013 100644 --- a/dashboard/15-final/app/dashboard/layout.tsx +++ b/dashboard/15-final/app/dashboard/layout.tsx @@ -3,9 +3,11 @@ import SideNav from "../ui/dashboard-sidenav"; export default function Layout({ children }: { children: React.ReactNode }) { return ( -
- -
+
+
+ +
+
{children}
diff --git a/dashboard/15-final/app/ui/dashboard-sidenav.tsx b/dashboard/15-final/app/ui/dashboard-sidenav.tsx index 2b5838a..8da66e0 100644 --- a/dashboard/15-final/app/ui/dashboard-sidenav.tsx +++ b/dashboard/15-final/app/ui/dashboard-sidenav.tsx @@ -22,7 +22,7 @@ export default function SideNav() { ]; return ( -
+
customer.id === customerId); return customerName ? customerName.name : null; } + return (

Invoices

Add Invoice
-
+
@@ -50,11 +51,11 @@ export default function Example() { {invoice.id} - + @@ -68,3 +69,7 @@ export default function Example() { ) } + + + +
{getNameById(invoice.customerId)}{(invoice.amount / 100).toLocaleString("en-US", {style: "currency", currency: "USD"})}{invoice.amount.toLocaleString("en-US", {style: "currency", currency: "USD"})} {invoice.status} {invoice.date} - + View, {invoice.id}