From b147c8e5df75bdeafb1f0eeb2e6ce08e0dec7e37 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Sat, 5 Oct 2024 18:16:19 +0000 Subject: feature: Persevere the source URL of clipped texts from the extension. Fixes #448 --- apps/web/components/dashboard/bookmarks/TextCard.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'apps/web/components/dashboard/bookmarks/TextCard.tsx') diff --git a/apps/web/components/dashboard/bookmarks/TextCard.tsx b/apps/web/components/dashboard/bookmarks/TextCard.tsx index 9876d904..9d6c1df1 100644 --- a/apps/web/components/dashboard/bookmarks/TextCard.tsx +++ b/apps/web/components/dashboard/bookmarks/TextCard.tsx @@ -5,8 +5,10 @@ import { bookmarkLayoutSwitch } from "@/lib/userLocalSettings/bookmarksLayout"; import { cn } from "@/lib/utils"; import type { ZBookmarkTypeText } from "@hoarder/shared/types/bookmarks"; +import { getSourceUrl } from "@hoarder/shared-react/utils/bookmarkUtils"; import { BookmarkLayoutAdaptingCard } from "./BookmarkLayoutAdaptingCard"; +import FooterLinkURL from "./FooterLinkURL"; export default function TextCard({ bookmark, @@ -22,7 +24,11 @@ export default function TextCard({ {bookmarkedText.text}} - footer={null} + footer={ + getSourceUrl(bookmark) && ( + + ) + } wrapTags={true} bookmark={bookmark} className={className} -- cgit v1.2.3-70-g09d2