aboutsummaryrefslogtreecommitdiff
path: root/apps/web/src/contexts
diff options
context:
space:
mode:
authorYash <[email protected]>2024-04-05 08:33:09 +0000
committerYash <[email protected]>2024-04-05 08:33:09 +0000
commit4faf6bd82a2f93f3b78bad6250ef44ef8b372ba0 (patch)
tree97c5fde685e786ad180194dd5be73b30a28705dc /apps/web/src/contexts
parentMerge branch 'new-ui' of https://github.com/Dhravya/supermemory into new-ui (diff)
downloadsupermemory-4faf6bd82a2f93f3b78bad6250ef44ef8b372ba0.tar.xz
supermemory-4faf6bd82a2f93f3b78bad6250ef44ef8b372ba0.zip
add context and fix sidebar
Diffstat (limited to 'apps/web/src/contexts')
-rw-r--r--apps/web/src/contexts/MemoryContext.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/web/src/contexts/MemoryContext.tsx b/apps/web/src/contexts/MemoryContext.tsx
index c8b406c0..5be39ffc 100644
--- a/apps/web/src/contexts/MemoryContext.tsx
+++ b/apps/web/src/contexts/MemoryContext.tsx
@@ -1,15 +1,16 @@
+"use client";
import React from "react";
-import { Space } from "../../types/memory";
+import { CollectedSpaces } from "../../types/memory";
// temperory (will change)
export const MemoryContext = React.createContext<{
- spaces: Space[];
+ spaces: CollectedSpaces[];
}>({
spaces: [],
});
export const MemoryProvider: React.FC<
- { spaces: Space[] } & React.PropsWithChildren
+ { spaces: CollectedSpaces[] } & React.PropsWithChildren
> = ({ children, spaces }) => {
return (
<MemoryContext.Provider value={{ spaces }}>