diff options
| author | Mohamed Bassem <me@mbassem.com> | 2025-02-23 23:21:20 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2025-02-23 23:24:25 +0000 |
| commit | 61d398a833d9c213f21ce9b00c6fd8e4b46429a3 (patch) | |
| tree | 32ad9d618f0e9d67815d00a92f7952c0216798fd | |
| parent | 14e4fed321634dc014ad2f15cafef3ed0123855e (diff) | |
| download | karakeep-61d398a833d9c213f21ce9b00c6fd8e4b46429a3.tar.zst | |
fix: Add missing list to PWA. Fixes #884
| -rw-r--r-- | apps/web/app/dashboard/layout.tsx | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/apps/web/app/dashboard/layout.tsx b/apps/web/app/dashboard/layout.tsx index 17a7c144..272979f3 100644 --- a/apps/web/app/dashboard/layout.tsx +++ b/apps/web/app/dashboard/layout.tsx @@ -7,7 +7,14 @@ import { Separator } from "@/components/ui/separator"; import { api } from "@/server/api/client"; import { getServerAuthSession } from "@/server/auth"; import { TFunction } from "i18next"; -import { Archive, Highlighter, Home, Search, Tag } from "lucide-react"; +import { + Archive, + ClipboardList, + Highlighter, + Home, + Search, + Tag, +} from "lucide-react"; import serverConfig from "@hoarder/shared/config"; @@ -58,6 +65,15 @@ export default async function Dashboard({ }, ].flat(); + const mobileSidebar = (t: TFunction) => [ + ...items(t), + { + name: t("lists.all_lists"), + icon: <ClipboardList size={18} />, + path: "/dashboard/lists", + }, + ]; + return ( <SidebarLayout sidebar={ @@ -71,7 +87,7 @@ export default async function Dashboard({ } /> } - mobileSidebar={<MobileSidebar items={items} />} + mobileSidebar={<MobileSidebar items={mobileSidebar} />} modal={modal} > {children} |
