summaryrefslogtreecommitdiff
path: root/pages/index.tsx
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2022-09-27 14:32:54 +0200
committerThomas F. K. Jorna <[email protected]>2022-09-27 14:32:54 +0200
commitfa84c052b221d157fa869cd4912acd538b5005a0 (patch)
tree55c67435c02abbd3ebaeb1d4d8fce1bb28ba8412 /pages/index.tsx
parent16a8da9e5107833032893bc4c0680b368ac423ac (diff)
comment out useless usestate
Diffstat (limited to 'pages/index.tsx')
-rw-r--r--pages/index.tsx15
1 files changed, 8 insertions, 7 deletions
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