From 189fdb17890defa8fda32ed98275516d25e9001b Mon Sep 17 00:00:00 2001
From: Ansh <anshnanda10@gmail.com>
Date: Wed, 31 May 2023 17:19:08 -0700
Subject: fix linting & type errors (#819)

---
 src/lib/ThemeContext.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/lib/ThemeContext.tsx')

diff --git a/src/lib/ThemeContext.tsx b/src/lib/ThemeContext.tsx
index 251e04e50..e68ba5246 100644
--- a/src/lib/ThemeContext.tsx
+++ b/src/lib/ThemeContext.tsx
@@ -78,7 +78,7 @@ export interface Theme {
 }
 
 export interface ThemeProviderProps {
-  theme?: ColorScheme
+  theme?: 'light' | 'dark' | 'system'
 }
 
 export const ThemeContext = createContext<Theme>(defaultTheme)
@@ -96,7 +96,7 @@ export const ThemeProvider: React.FC<ThemeProviderProps> = ({
 
   const value = useMemo(
     () => (colorScheme === 'dark' ? darkTheme : defaultTheme),
-    [colorScheme, theme],
+    [colorScheme],
   )
 
   return <ThemeContext.Provider value={value}>{children}</ThemeContext.Provider>
-- 
cgit 1.4.1

