From da49ca0cf686e1b64a896d77d94585a0ec67178e Mon Sep 17 00:00:00 2001 From: Yash Date: Sat, 6 Apr 2024 05:13:35 +0000 Subject: move to context --- apps/web/src/components/Sidebar/index.tsx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'apps/web/src/components') diff --git a/apps/web/src/components/Sidebar/index.tsx b/apps/web/src/components/Sidebar/index.tsx index 52bab0f9..8effffbd 100644 --- a/apps/web/src/components/Sidebar/index.tsx +++ b/apps/web/src/components/Sidebar/index.tsx @@ -28,19 +28,14 @@ const menuItemsBottom: Array = [ export default function Sidebar({ selectChange, - spaces }: { selectChange?: (selectedItem: string | null) => void; - spaces: CollectedSpaces[]; }) { - // TODO: @yxshv, put spaces in context here - // const { spaces } = useMemory(); - const menuItemsTop: Array = [ { icon: , label: "Memories", - content: , + content: , }, ]; const menuItems = [...menuItemsTop, ...menuItemsBottom]; @@ -62,7 +57,7 @@ export default function Sidebar({ item={{ label: "Memories", icon: , - content: , + content: , }} selectedItem={selectedItem} setSelectedItem={setSelectedItem} -- cgit v1.2.3