mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
fix: removed passHref and updated card
Signed-off-by: Adithya Krishna <adikrish@redhat.com>
This commit is contained in:
@ -34,20 +34,22 @@ export default async function DashboardPage() {
|
|||||||
}),
|
}),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
const cardData = [
|
||||||
|
{ icon: FileCheck, title: 'Completed', status: stats.COMPLETED },
|
||||||
|
{ icon: File, title: 'Drafts', status: stats.DRAFT },
|
||||||
|
{ icon: Clock, title: 'Pending', status: stats.PENDING },
|
||||||
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mx-auto w-full max-w-screen-xl px-4 md:px-8">
|
<div className="mx-auto w-full max-w-screen-xl px-4 md:px-8">
|
||||||
<h1 className="text-4xl font-semibold">Dashboard</h1>
|
<h1 className="text-4xl font-semibold">Dashboard</h1>
|
||||||
|
|
||||||
<div className="mt-8 grid grid-cols-1 gap-4 md:grid-cols-3">
|
<div className="mt-8 grid grid-cols-1 gap-4 md:grid-cols-3">
|
||||||
<Link href={'/documents?status=COMPLETED'} passHref>
|
{cardData.map((card) => (
|
||||||
<CardMetric icon={FileCheck} title="Completed" value={stats.COMPLETED} />
|
<Link key={card.status} href={`/documents?status=${card.status}`}>
|
||||||
</Link>
|
<CardMetric icon={card.icon} title={card.title} value={card.status} />
|
||||||
<Link href={'/documents?status=DRAFT'} passHref>
|
</Link>
|
||||||
<CardMetric icon={File} title="Drafts" value={stats.DRAFT} />
|
))}
|
||||||
</Link>
|
|
||||||
<Link href={'/documents?status=PENDING'} passHref>
|
|
||||||
<CardMetric icon={Clock} title="Pending" value={stats.PENDING} />
|
|
||||||
</Link>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="mt-12">
|
<div className="mt-12">
|
||||||
|
|||||||
Reference in New Issue
Block a user