diff options
| author | Mohamed Bassem <me@mbassem.com> | 2025-03-02 10:46:23 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2025-03-02 10:46:59 +0000 |
| commit | 379c49b2cd6d081cbe593c969b6f2128b60407c9 (patch) | |
| tree | e5b137fe03dd4113b6ec4c05ee15259ff61981f9 /apps/web/components/dashboard/lists/ListOptions.tsx | |
| parent | feac3147fe3af648f8f39f339411dbeff116ca6c (diff) | |
| download | karakeep-379c49b2cd6d081cbe593c969b6f2128b60407c9.tar.zst | |
feat(web): Show list stats in the sidebar
Diffstat (limited to 'apps/web/components/dashboard/lists/ListOptions.tsx')
| -rw-r--r-- | apps/web/components/dashboard/lists/ListOptions.tsx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/web/components/dashboard/lists/ListOptions.tsx b/apps/web/components/dashboard/lists/ListOptions.tsx index a7217954..0e24d6a2 100644 --- a/apps/web/components/dashboard/lists/ListOptions.tsx +++ b/apps/web/components/dashboard/lists/ListOptions.tsx @@ -1,5 +1,3 @@ -"use client"; - import { useState } from "react"; import { DropdownMenu, @@ -17,8 +15,12 @@ import DeleteListConfirmationDialog from "./DeleteListConfirmationDialog"; export function ListOptions({ list, + isOpen, + onOpenChange, children, }: { + isOpen?: boolean; + onOpenChange?: (open: boolean) => void; list: ZBookmarkList; children?: React.ReactNode; }) { @@ -29,7 +31,7 @@ export function ListOptions({ const [editModalOpen, setEditModalOpen] = useState(false); return ( - <DropdownMenu> + <DropdownMenu open={isOpen} onOpenChange={onOpenChange}> <EditListModal open={newNestedListModalOpen} setOpen={setNewNestedListModalOpen} |
