From b8b0a444139358bdf7707034e3a7437babc69db8 Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Tue, 5 Mar 2024 02:26:10 +0000
Subject: feature: Preview page for the stored content of links

---
 packages/web/app/dashboard/bookmarks/components/TextCard.tsx | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'packages/web/app/dashboard/bookmarks/components/TextCard.tsx')

diff --git a/packages/web/app/dashboard/bookmarks/components/TextCard.tsx b/packages/web/app/dashboard/bookmarks/components/TextCard.tsx
index 8170a304..029800ac 100644
--- a/packages/web/app/dashboard/bookmarks/components/TextCard.tsx
+++ b/packages/web/app/dashboard/bookmarks/components/TextCard.tsx
@@ -10,6 +10,7 @@ import Markdown from "react-markdown";
 import { useState } from "react";
 import { BookmarkedTextViewer } from "./BookmarkedTextViewer";
 import { Button } from "@/components/ui/button";
+import Link from "next/link";
 
 function isStillTagging(bookmark: ZBookmark) {
   return (
@@ -82,13 +83,12 @@ export default function TextCard({
                 />
               )}
             </div>
-            <Button
-              className="px-2"
-              variant="ghost"
-              onClick={() => setPreviewModalOpen(true)}
+            <Link
+              className="my-auto block px-2"
+              href={`/dashboard/preview/${bookmark.id}`}
             >
               <Maximize2 size="20" />
-            </Button>
+            </Link>
             <BookmarkOptions bookmark={bookmark} />
           </div>
         </div>
-- 
cgit v1.2.3-70-g09d2

