diff --git a/dashboard/15-final/app/dashboard/invoices/[id]/page.tsx b/dashboard/15-final/app/dashboard/invoices/[id]/page.tsx deleted file mode 100644 index 30de135..0000000 --- a/dashboard/15-final/app/dashboard/invoices/[id]/page.tsx +++ /dev/null @@ -1,3 +0,0 @@ -export default function Page() { - return
| Total Invoices | ++ Total Pending + | ++ Total Paid + | |||
|---|---|---|---|---|---|
|
-
-
+ |
+
+
|
{customer.name} @@ -52,7 +55,17 @@ export default function CustomersTable() { {customer.email} | - {totalInvoices(customer.id)} + {countCustomerInvoices(invoices, customer.id)} + | ++ {calculateCustomerInvoices( + invoices, + "pending", + customer.id, + )} + | ++ {calculateCustomerInvoices(invoices, "paid", customer.id)} | Edit | - {/*- View - | */} @@ -116,14 +113,6 @@ export default function InvoicesTable() {- - View, {invoice.id} - - | */} ))}