aboutsummaryrefslogtreecommitdiffstats
path: root/packages/web/app/dashboard/bookmarks/components/TextCard.tsx
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-03-05 02:26:10 +0000
committerMohamedBassem <me@mbassem.com>2024-03-05 02:26:10 +0000
commitb8b0a444139358bdf7707034e3a7437babc69db8 (patch)
tree73c754d2e76021233852917b24e20ac4e2906420 /packages/web/app/dashboard/bookmarks/components/TextCard.tsx
parentb2e64b9cbc95fdc66b8de69ae221fc5e696bf873 (diff)
downloadkarakeep-b8b0a444139358bdf7707034e3a7437babc69db8.tar.zst
feature: Preview page for the stored content of links
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>