Commit 61d398a8
| SHA | 61d398a833d9c213f21ce9b00c6fd8e4b46429a3 |
|---|---|
| Author | Mohamed Bassem <me at mbassem dot com> |
| Author Date | 2025-02-23 23:21 +0000 |
| Committer | Mohamed Bassem <me at mbassem dot com> |
| Commit Date | 2025-02-23 23:24 +0000 |
| Parent(s) | 14e4fed32163 (diff) |
| Tree | 32ad9d618f0e |
fix: Add missing list to PWA. Fixes #884
| File | + | - | Graph | |
|---|---|---|---|---|
| M | apps/web/app/dashboard/layout.tsx | +18 | -2 |
|
1 file(s) changed, 18 insertions(+), 2 deletions(-)
apps/web/app/dashboard/layout.tsx
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}