react components
This commit is contained in:
parent
890f0c91a4
commit
ea75e6f7f8
@ -1,7 +1,31 @@
|
||||
import React from "react";
|
||||
import { Card } from '@/app/ui/dashboard/cards';
|
||||
import RevenueChart from '@/app/ui/dashboard/revenue-chart';
|
||||
import LatestInvoices from '@/app/ui/dashboard/latest-invoices';
|
||||
import { lusitana } from '@/app/ui/fonts';
|
||||
import { fetchRevenue } from '../lib/data';
|
||||
|
||||
const page = () => {
|
||||
return <p>Dashboard Page</p>;
|
||||
};
|
||||
export default async function Page() {
|
||||
const revenue = await fetchRevenue();
|
||||
|
||||
export default page;
|
||||
return (
|
||||
<main>
|
||||
<h1 className={`${lusitana.className} mb-4 text-xl md:text-2xl`}>
|
||||
Dashboard
|
||||
</h1>
|
||||
<div className="grid gap-6 sm:grid-cols-2 lg:grid-cols-4">
|
||||
{/* <Card title="Collected" value={totalPaidInvoices} type="collected" /> */}
|
||||
{/* <Card title="Pending" value={totalPendingInvoices} type="pending" /> */}
|
||||
{/* <Card title="Total Invoices" value={numberOfInvoices} type="invoices" /> */}
|
||||
{/* <Card
|
||||
title="Total Customers"
|
||||
value={numberOfCustomers}
|
||||
type="customers"
|
||||
/> */}
|
||||
</div>
|
||||
<div className="mt-6 grid grid-cols-1 gap-6 md:grid-cols-4 lg:grid-cols-8">
|
||||
{/* <RevenueChart revenue={revenue} /> */}
|
||||
{/* <LatestInvoices latestInvoices={latestInvoices} /> */}
|
||||
</div>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user