diff --git a/apps/web/pages/dashboard.tsx b/apps/web/pages/dashboard.tsx index 3f38efd5e..eaeb9ae5e 100644 --- a/apps/web/pages/dashboard.tsx +++ b/apps/web/pages/dashboard.tsx @@ -4,19 +4,15 @@ import Layout from "../components/layout"; import Link from "next/link"; import type { NextPageWithLayout } from "./_app"; import { - BellSnoozeIcon, CheckBadgeIcon, - EnvelopeIcon, - EyeIcon, - SunIcon, - XCircleIcon, + DocumentIcon, + ExclamationTriangleIcon, + UsersIcon, } from "@heroicons/react/24/outline"; import { uploadDocument } from "@documenso/features"; -import prisma from "@documenso/prisma"; import { - ReadStatus, - SendStatus, DocumentStatus, + SendStatus, Document as PrismaDocument, } from "@prisma/client"; import { getUserFromToken } from "@documenso/lib/server"; @@ -31,38 +27,26 @@ const DashboardPage: NextPageWithLayout = (props: any) => { { name: "Draft", stat: "0", - icon: SunIcon, - link: "/documents?filter=", + icon: DocumentIcon, + link: "/documents?filter=draft", }, { - name: "Sent", + name: "Action required", stat: "0", - icon: EnvelopeIcon, - link: "/documents?filter=", + icon: ExclamationTriangleIcon, + link: "/documents?filter=action_required", }, { - name: "Viewed", + name: "Waiting for others", stat: "0", - icon: EyeIcon, - link: "/documents?filter=", + icon: UsersIcon, + link: "/documents?filter=waiting_for_others", }, { - name: "Signed", + name: "Completed", stat: "0", icon: CheckBadgeIcon, - link: "/documents?filter=", - }, - { - name: "Expired", - stat: "0", - icon: BellSnoozeIcon, - link: "/documents?filter=", - }, - { - name: "Declined", - stat: "0", - icon: XCircleIcon, - link: "/documents?filter=", + link: "/documents?filter=completed", }, ]; @@ -77,11 +61,11 @@ const DashboardPage: NextPageWithLayout = (props: any) => { Dashboard -
+
{stats.map((item) => ( -
-
+
+