From 994691b02515dfb579a5c3618631065bd76b9e4b Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Sun, 7 Apr 2024 19:02:52 +0100 Subject: refactor(web): Move the tooltip provider to the root of the app --- .../dashboard/preview/BookmarkPreview.tsx | 45 ++++++++++------------ 1 file changed, 20 insertions(+), 25 deletions(-) (limited to 'apps/web/components/dashboard/preview/BookmarkPreview.tsx') diff --git a/apps/web/components/dashboard/preview/BookmarkPreview.tsx b/apps/web/components/dashboard/preview/BookmarkPreview.tsx index bd7881a3..cf8bc2d8 100644 --- a/apps/web/components/dashboard/preview/BookmarkPreview.tsx +++ b/apps/web/components/dashboard/preview/BookmarkPreview.tsx @@ -8,7 +8,6 @@ import { Tooltip, TooltipContent, TooltipPortal, - TooltipProvider, TooltipTrigger, } from "@/components/ui/tooltip"; import { @@ -41,18 +40,16 @@ function ContentLoading() { function CreationTime({ createdAt }: { createdAt: Date }) { return ( - - - - - {dayjs(createdAt).fromNow()} - - - - {createdAt.toLocaleString()} - - - + + + + {dayjs(createdAt).fromNow()} + + + + {createdAt.toLocaleString()} + + ); } @@ -65,18 +62,16 @@ function LinkHeader({ bookmark }: { bookmark: ZBookmark }) { return (
- - - -

{title}

-
- - - {title} - - -
-
+ + +

{title}

+
+ + + {title} + + +