aboutsummaryrefslogtreecommitdiffstats
path: root/packages/web/app/dashboard/bookmarks/components/TextCard.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/web/app/dashboard/bookmarks/components/TextCard.tsx')
-rw-r--r--packages/web/app/dashboard/bookmarks/components/TextCard.tsx10
1 files changed, 5 insertions, 5 deletions
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>