diff options
| author | Yash <[email protected]> | 2024-04-11 04:52:44 +0000 |
|---|---|---|
| committer | Yash <[email protected]> | 2024-04-11 04:52:44 +0000 |
| commit | 6dcc7d18c9be5e3a5e0a3ff60668424ee0158b4e (patch) | |
| tree | 179aa936536510cc707368fc7c330c4c7fbdc3f8 /apps/web/src/contexts | |
| parent | novel editor (diff) | |
| parent | save user ID with url to ensure that same website can be saved by users (diff) | |
| download | supermemory-new-ui.tar.xz supermemory-new-ui.zip | |
Merge branch 'main' of https://github.com/Dhravya/supermemory into new-uinew-ui
Diffstat (limited to 'apps/web/src/contexts')
| -rw-r--r-- | apps/web/src/contexts/MemoryContext.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/web/src/contexts/MemoryContext.tsx b/apps/web/src/contexts/MemoryContext.tsx index 3727c464..eab1e4fe 100644 --- a/apps/web/src/contexts/MemoryContext.tsx +++ b/apps/web/src/contexts/MemoryContext.tsx @@ -1,6 +1,6 @@ -'use client'; -import React, { useCallback } from 'react'; -import { CollectedSpaces } from '../../types/memory'; +"use client"; +import React, { useCallback } from "react"; +import { CollectedSpaces } from "../../types/memory"; // temperory (will change) export const MemoryContext = React.createContext<{ @@ -41,7 +41,7 @@ export const MemoryProvider: React.FC< export const useMemory = () => { const context = React.useContext(MemoryContext); if (context === undefined) { - throw new Error('useMemory must be used within a MemoryProvider'); + throw new Error("useMemory must be used within a MemoryProvider"); } return context; }; |