From fa84c052b221d157fa869cd4912acd538b5005a0 Mon Sep 17 00:00:00 2001
From: "Thomas F. K. Jorna" <hello@tefkah.com>
Date: Tue, 27 Sep 2022 14:32:54 +0200
Subject: comment out useless usestate

---
 pages/index.tsx | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

(limited to 'pages/index.tsx')

diff --git a/pages/index.tsx b/pages/index.tsx
index fdbabc3..6511773 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -79,7 +79,7 @@ export interface EmacsVariables {
   dailyDir?: string
   katexMacros?: { [key: string]: string }
   attachDir?: string
-  useInheritance?: boolean,
+  useInheritance?: boolean
   subDirs: string[]
 }
 export type Tags = string[]
@@ -461,6 +461,8 @@ export function GraphPage() {
               setEmacsNodeId(message.data.id)
               break
             }
+            case 'add-node-local': {
+            }
             default:
               return console.error('unknown message type', message.type)
           }
@@ -537,18 +539,17 @@ export function GraphPage() {
     return
   }
 
-  const [mainItem, setMainItem] = useState({
-    type: 'Graph',
-    title: 'Graph',
-    icon: <BiNetworkChart />,
-  })
+  // const [mainItem, setMainItem] = useState({
+  //   type: 'Graph',
+  //   title: 'Graph',
+  //   icon: <BiNetworkChart />,
+  // })
 
   const [mainWindowWidth, setMainWindowWidth] = usePersistantState<number>(
     'mainWindowWidth',
     windowWidth,
   )
 
-  console.log(emacsVariables)
   return (
     <VariablesContext.Provider value={{ ...emacsVariables }}>
       <Box
-- 
cgit v1.2.3

