mirror of
https://github.com/vercel/next-learn.git
synced 2026-06-11 09:51:47 +00:00
Another one
This commit is contained in:
@@ -6,7 +6,7 @@ import {
|
||||
} from '@heroicons/react/24/outline';
|
||||
import { lusitana } from '@/app/ui/fonts';
|
||||
import {
|
||||
fetchCustomers,
|
||||
fetchCustomersCount,
|
||||
fetchInvoices,
|
||||
fetchInvoiceStatus,
|
||||
} from '@/app/lib/data';
|
||||
@@ -30,7 +30,7 @@ export async function CardTotalInvoices() {
|
||||
}
|
||||
|
||||
export async function CardCustomers() {
|
||||
const { numberOfCustomers } = await fetchCustomers();
|
||||
const { numberOfCustomers } = await fetchCustomersCount();
|
||||
|
||||
return <Card title="Customers">{numberOfCustomers}</Card>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user