diff options
| author | Yash <[email protected]> | 2024-04-06 05:13:35 +0000 |
|---|---|---|
| committer | Yash <[email protected]> | 2024-04-06 05:13:35 +0000 |
| commit | da49ca0cf686e1b64a896d77d94585a0ec67178e (patch) | |
| tree | ad7e801f08bbd31cd759cb49377e85fccef7c64d /apps/web/src/components | |
| parent | Merge branch 'new-ui' of https://github.com/Dhravya/supermemory into new-ui (diff) | |
| download | supermemory-da49ca0cf686e1b64a896d77d94585a0ec67178e.tar.xz supermemory-da49ca0cf686e1b64a896d77d94585a0ec67178e.zip | |
move to context
Diffstat (limited to 'apps/web/src/components')
| -rw-r--r-- | apps/web/src/components/Sidebar/index.tsx | 9 |
1 files changed, 2 insertions, 7 deletions
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<MenuItem> = [ 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<MenuItem> = [ { icon: <MemoryIcon className="h-10 w-10" />, label: "Memories", - content: <MemoriesBar spaces={spaces} />, + content: <MemoriesBar />, }, ]; const menuItems = [...menuItemsTop, ...menuItemsBottom]; @@ -62,7 +57,7 @@ export default function Sidebar({ item={{ label: "Memories", icon: <MemoryIcon className="h-10 w-10" />, - content: <MemoriesBar spaces={spaces} />, + content: <MemoriesBar />, }} selectedItem={selectedItem} setSelectedItem={setSelectedItem} |