diff --git a/dashboard/starter-example/app/ui/dashboard/cards.tsx b/dashboard/starter-example/app/ui/dashboard/cards.tsx index 10fadb4..adf10ac 100644 --- a/dashboard/starter-example/app/ui/dashboard/cards.tsx +++ b/dashboard/starter-example/app/ui/dashboard/cards.tsx @@ -5,7 +5,6 @@ import { InboxIcon, } from '@heroicons/react/24/outline'; import { lusitana } from '@/app/ui/fonts'; -import { fetchCardData } from '@/app/lib/data'; const iconMap = { collected: BanknotesIcon, @@ -15,13 +14,6 @@ const iconMap = { }; export default async function Cards() { - const { - numberOfInvoices, - numberOfCustomers, - totalPaidInvoices, - totalPendingInvoices, - } = await fetchCardData(); - return ( <> diff --git a/dashboard/starter-example/app/ui/dashboard/latest-invoices.tsx b/dashboard/starter-example/app/ui/dashboard/latest-invoices.tsx index 14262c9..c4e33da 100644 --- a/dashboard/starter-example/app/ui/dashboard/latest-invoices.tsx +++ b/dashboard/starter-example/app/ui/dashboard/latest-invoices.tsx @@ -2,10 +2,7 @@ import { ArrowPathIcon } from '@heroicons/react/24/outline'; import clsx from 'clsx'; import Image from 'next/image'; import { lusitana } from '@/app/ui/fonts'; -import { fetchLatestInvoices } from '@/app/lib/data'; export default async function LatestInvoices() { - const latestInvoices = await fetchLatestInvoices(); - return (

@@ -27,7 +24,6 @@ export default async function LatestInvoices() {