From 9255eccebee88e15ea3589dd6d1c5060c9e3ed5f Mon Sep 17 00:00:00 2001 From: Aamir Azad Date: Wed, 7 Aug 2024 17:22:55 -0400 Subject: [PATCH] feat: Paperless search result previews --- src/app/paperless/page.tsx | 39 ++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/src/app/paperless/page.tsx b/src/app/paperless/page.tsx index 6477644..8ffb972 100644 --- a/src/app/paperless/page.tsx +++ b/src/app/paperless/page.tsx @@ -50,7 +50,6 @@ async function getPaperlessDocuments(query: string) { return data; } - function DocumentsSearch() { const formSchema = z.object({ query: z.string().min(3).max(256), @@ -163,21 +162,26 @@ function DocumentsPage() { } return ( - <> -

Search Results

- - +
+ {paperlessDocumentMap.map((document, index) => ( +
+ {document.title} + + {document.title} + +
+ ))} +
); } @@ -200,6 +204,9 @@ export default function PaperlessPage() {
+

+ Search Results +