From a74374e39f07c0001d63de356a3f8395b25b400a Mon Sep 17 00:00:00 2001 From: Ephraim Atta-Duncan Date: Wed, 6 Sep 2023 11:11:13 +0000 Subject: [PATCH] feat: add initial empty state for no results --- apps/web/src/app/(dashboard)/documents/page.tsx | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/apps/web/src/app/(dashboard)/documents/page.tsx b/apps/web/src/app/(dashboard)/documents/page.tsx index 4ea55936b..3c4c13e30 100644 --- a/apps/web/src/app/(dashboard)/documents/page.tsx +++ b/apps/web/src/app/(dashboard)/documents/page.tsx @@ -1,5 +1,7 @@ import Link from 'next/link'; +import { CheckCircle2 } from 'lucide-react'; + import { getRequiredServerComponentSession } from '@documenso/lib/next-auth/get-server-session'; import { findDocuments } from '@documenso/lib/server-only/document/find-documents'; import { getStats } from '@documenso/lib/server-only/document/get-stats'; @@ -95,8 +97,21 @@ export default async function DocumentsPage({ searchParams = {} }: DocumentsPage
- + {results.count > 0 && } + {results.count === 0 && }
); } + +const EmptyDocumentState = () => { + return ( +
+ +
+

All done

+

All documents signed for now.

+
+
+ ); +};