diff options
| author | Mohamed Bassem <me@mbassem.com> | 2025-10-05 18:50:48 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2025-10-05 18:50:48 +0000 |
| commit | 57d731ba18357cdcbeddd540b0488bc210995bf3 (patch) | |
| tree | 15f6095a7a1f8570ef43da1b70e85f44e4214def | |
| parent | b6867be4233cc39c27c9536c9da4a9e9905db27c (diff) | |
| download | karakeep-57d731ba18357cdcbeddd540b0488bc210995bf3.tar.zst | |
fix: fix show no bookmark page when there isn't search results
| -rw-r--r-- | apps/web/components/dashboard/bookmarks/NoBookmarksBanner.tsx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/web/components/dashboard/bookmarks/NoBookmarksBanner.tsx b/apps/web/components/dashboard/bookmarks/NoBookmarksBanner.tsx index 125c0e61..5ea48fd8 100644 --- a/apps/web/components/dashboard/bookmarks/NoBookmarksBanner.tsx +++ b/apps/web/components/dashboard/bookmarks/NoBookmarksBanner.tsx @@ -1,9 +1,10 @@ -import { useTranslation } from "@/lib/i18n/server"; +"use client"; + +import { useTranslation } from "@/lib/i18n/client"; import { Bookmark } from "lucide-react"; -export default async function NoBookmarksBanner() { - // oxlint-disable-next-line rules-of-hooks - const { t } = await useTranslation(); +export default function NoBookmarksBanner() { + const { t } = 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"> |
