From 7df6d942d8ec6ae2d03ff56cc23b8af817e2827d Mon Sep 17 00:00:00 2001
From: Mohamed Bassem <me@mbassem.com>
Date: Sun, 28 Sep 2025 18:52:20 +0100
Subject: fix: fix public list sharing for empty lists (#1990)

---
 apps/web/components/dashboard/bookmarks/NoBookmarksBanner.tsx | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

(limited to 'apps/web/components/dashboard/bookmarks/NoBookmarksBanner.tsx')

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">
-- 
cgit v1.2.3-70-g09d2

