From 379c49b2cd6d081cbe593c969b6f2128b60407c9 Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sun, 2 Mar 2025 10:46:23 +0000 Subject: feat(web): Show list stats in the sidebar --- apps/web/components/dashboard/sidebar/AllLists.tsx | 107 +++++++++++++-------- 1 file changed, 68 insertions(+), 39 deletions(-) (limited to 'apps/web/components/dashboard/sidebar') diff --git a/apps/web/components/dashboard/sidebar/AllLists.tsx b/apps/web/components/dashboard/sidebar/AllLists.tsx index 7341e118..5b4b12bc 100644 --- a/apps/web/components/dashboard/sidebar/AllLists.tsx +++ b/apps/web/components/dashboard/sidebar/AllLists.tsx @@ -1,12 +1,14 @@ "use client"; -import { useCallback } from "react"; +import { useCallback, useState } from "react"; import Link from "next/link"; import { usePathname } from "next/navigation"; import SidebarItem from "@/components/shared/sidebar/SidebarItem"; +import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { CollapsibleTriggerTriangle } from "@/components/ui/collapsible"; import { useTranslation } from "@/lib/i18n/client"; +import { cn } from "@/lib/utils"; import { MoreHorizontal, Plus } from "lucide-react"; import type { ZBookmarkList } from "@hoarder/shared/types/lists"; @@ -27,6 +29,9 @@ export default function AllLists({ (node: ZBookmarkListTreeNode) => pathName.includes(node.item.id), [pathName], ); + + const [selectedListId, setSelectedListId] = useState(null); + return ( ); } -- cgit v1.2.3-70-g09d2