diff options
| author | yxshv <[email protected]> | 2024-04-13 23:14:06 +0530 |
|---|---|---|
| committer | yxshv <[email protected]> | 2024-04-13 23:14:06 +0530 |
| commit | a7d72c798d18ae55f9a5de13fa8a94346346779d (patch) | |
| tree | dd21d39bd0f95446c12d25edb7aaea61ac38f529 /apps/web/src/components | |
| parent | order by savedAt (diff) | |
| download | supermemory-a7d72c798d18ae55f9a5de13fa8a94346346779d.tar.xz supermemory-a7d72c798d18ae55f9a5de13fa8a94346346779d.zip | |
delete spaces and memories
Diffstat (limited to 'apps/web/src/components')
| -rw-r--r-- | apps/web/src/components/Sidebar/MemoriesBar.tsx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/web/src/components/Sidebar/MemoriesBar.tsx b/apps/web/src/components/Sidebar/MemoriesBar.tsx index 9b0376e3..aaf40fd9 100644 --- a/apps/web/src/components/Sidebar/MemoriesBar.tsx +++ b/apps/web/src/components/Sidebar/MemoriesBar.tsx @@ -46,7 +46,6 @@ import { ExpandedSpace } from "./ExpandedSpace"; import { StoredContent, StoredSpace } from "@/server/db/schema"; import Image from "next/image" import { useDebounce } from "@/hooks/useDebounce"; -import { searchMemoriesAndSpaces } from "@/actions/db"; export function MemoriesBar() { const [parent, enableAnimations] = useAutoAnimate(); @@ -165,7 +164,7 @@ export function MemoriesBar() { <> {spaces.map((space) => ( <SpaceItem - onDelete={() => {}} + onDelete={() => deleteSpace(space.id)} key={space.id} //onClick={() => setExpandedSpace(space.id)} {...space} @@ -256,7 +255,6 @@ export function SpaceItem({ }, [cachedMemories]) const _name = name.length > 10 ? name.slice(0, 10) + "..." : name - return ( <motion.div ref={itemRef} |