aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/components/dashboard/bookmarks
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-07-06 10:10:01 +0000
committerMohamedBassem <me@mbassem.com>2024-07-06 10:10:01 +0000
commitd7fff89159bd284cde0919391543261ec707c9ef (patch)
tree9ce5e7430ceda311336ddbe33ca1ecf45365d34c /apps/web/components/dashboard/bookmarks
parent72f03b209340b3f838eab8fd8de987d598d2691e (diff)
downloadkarakeep-d7fff89159bd284cde0919391543261ec707c9ef.tar.zst
fix(web): Suppress hydration warnings caused by the dates in the bookmark grid
Diffstat (limited to 'apps/web/components/dashboard/bookmarks')
-rw-r--r--apps/web/components/dashboard/bookmarks/BookmarkLayoutAdaptingCard.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/web/components/dashboard/bookmarks/BookmarkLayoutAdaptingCard.tsx b/apps/web/components/dashboard/bookmarks/BookmarkLayoutAdaptingCard.tsx
index 33b65108..f5891f40 100644
--- a/apps/web/components/dashboard/bookmarks/BookmarkLayoutAdaptingCard.tsx
+++ b/apps/web/components/dashboard/bookmarks/BookmarkLayoutAdaptingCard.tsx
@@ -39,7 +39,10 @@ function BottomRow({
<div className="justify flex w-full shrink-0 justify-between text-gray-500">
<div className="flex items-center gap-2 overflow-hidden text-nowrap">
{footer && <>{footer}•</>}
- <Link href={`/dashboard/preview/${bookmark.id}`}>
+ <Link
+ href={`/dashboard/preview/${bookmark.id}`}
+ suppressHydrationWarning
+ >
{dayjs(bookmark.createdAt).format("MMM DD")}
</Link>
</div>