From f69a7786da3ba21373574ee6c96371769a72ac42 Mon Sep 17 00:00:00 2001
From: Tom van der Lee <tom@vanderlee.io>
Date: Tue, 25 Jan 2022 22:03:00 +0100
Subject: Fixed issue with json viewer

---
 src/hooks/useDarkMode.tsx | 6 ------
 1 file changed, 6 deletions(-)

(limited to 'src/hooks/useDarkMode.tsx')

diff --git a/src/hooks/useDarkMode.tsx b/src/hooks/useDarkMode.tsx
index fe4ce95..18aea68 100644
--- a/src/hooks/useDarkMode.tsx
+++ b/src/hooks/useDarkMode.tsx
@@ -7,12 +7,6 @@ export interface UseDarkMode {
 }
 
 export default function useDarkMode() {
-  const themeConfig = useMemo(() => new ThemeConfig(), []);
-  const [darkMode, setDarkMode] = useState(() => themeConfig.getTheme() === 'dark')
-
-  useEffect(() => {
-    themeConfig.setTheme(darkMode ? 'dark' : 'light');
-  }, [darkMode])
 
   return {
     darkMode,
-- 
cgit v1.2.3

