diff options
| author | Mohamed Bassem <me@mbassem.com> | 2025-09-28 18:52:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-28 18:52:20 +0100 |
| commit | 7df6d942d8ec6ae2d03ff56cc23b8af817e2827d (patch) | |
| tree | 27405a7b68358a0b192e1b51b4ddf12c55ac765f /apps | |
| parent | 7d0b414f1f5681dcc73254fe97cb67de4c0cb748 (diff) | |
| download | karakeep-7df6d942d8ec6ae2d03ff56cc23b8af817e2827d.tar.zst | |
fix: fix public list sharing for empty lists (#1990)
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/web/components/dashboard/bookmarks/NoBookmarksBanner.tsx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/web/components/dashboard/bookmarks/NoBookmarksBanner.tsx b/apps/web/components/dashboard/bookmarks/NoBookmarksBanner.tsx index 70788f44..125c0e61 100644 --- a/apps/web/components/dashboard/bookmarks/NoBookmarksBanner.tsx +++ b/apps/web/components/dashboard/bookmarks/NoBookmarksBanner.tsx @@ -1,8 +1,9 @@ -import { useTranslation } from "@/lib/i18n/client"; +import { useTranslation } from "@/lib/i18n/server"; import { Bookmark } from "lucide-react"; -export default function NoBookmarksBanner() { - const { t } = useTranslation(); +export default async function NoBookmarksBanner() { + // oxlint-disable-next-line rules-of-hooks + const { t } = await useTranslation(); return ( <div className="flex flex-col items-center justify-center rounded-lg bg-slate-50 p-10 text-center shadow-sm dark:bg-slate-700/50 dark:shadow-md"> <div className="mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-slate-100 dark:bg-slate-700"> |
