diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-10-11 21:15:17 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-10-11 21:16:33 +0200 |
commit | 23ca91cd21a97e174d28f1b445ead8b2f304e05c (patch) | |
tree | 56a8af5bb024b8c1af8f430f758ac7d693127fc5 /pages | |
parent | b75598d879e1b9153d89a96f7b0f66ad8d641f71 (diff) |
chore: cleanup some logs
Diffstat (limited to 'pages')
-rw-r--r-- | pages/_app.tsx | 1 | ||||
-rw-r--r-- | pages/index.tsx | 69 |
2 files changed, 33 insertions, 37 deletions
diff --git a/pages/_app.tsx b/pages/_app.tsx index ac03907..9833717 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -20,7 +20,6 @@ function MyApp({ Component, pageProps }: AppProps) { if (isInitialized) { localStorage.setItem('colorTheme', JSON.stringify(emacsTheme)) } - console.log(emacsTheme) }, [emacsTheme]) useEffect(() => { diff --git a/pages/index.tsx b/pages/index.tsx index 2ecdb9a..0d91ecf 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -482,7 +482,6 @@ export function GraphPage() { useOutsideClick({ ref: contextMenuRef, handler: () => { - console.log('click') contextMenu.onClose() }, }) @@ -520,9 +519,6 @@ export function GraphPage() { 'mainWindowWidth', windowWidth, ) - if (!graphData) { - return null - } return ( <Box display="flex" alignItems="flex-start" flexDirection="row" height="100vh" overflow="clip"> @@ -546,37 +542,39 @@ export function GraphPage() { tags={tagsRef.current} /> <Box position="absolute"> - <Graph - //ref={graphRef} - nodeById={nodeByIdRef.current!} - linksByNodeId={linksByNodeIdRef.current!} - webSocket={WebSocketRef.current} - variables={variablesRef.current} - {...{ - physics, - graphData, - threeDim, - emacsNodeId, - filter, - visuals, - behavior, - mouse, - scope, - setScope, - tagColors, - setPreviewNode, - sidebarHighlightedNode, - windowWidth, - windowHeight, - openContextMenu, - contextMenu, - handleLocal, - mainWindowWidth, - setMainWindowWidth, - setContextMenuTarget, - graphRef, - }} - /> + {graphData && ( + <Graph + //ref={graphRef} + nodeById={nodeByIdRef.current!} + linksByNodeId={linksByNodeIdRef.current!} + webSocket={WebSocketRef.current} + variables={variablesRef.current} + {...{ + physics, + graphData, + threeDim, + emacsNodeId, + filter, + visuals, + behavior, + mouse, + scope, + setScope, + tagColors, + setPreviewNode, + sidebarHighlightedNode, + windowWidth, + windowHeight, + openContextMenu, + contextMenu, + handleLocal, + mainWindowWidth, + setMainWindowWidth, + setContextMenuTarget, + graphRef, + }} + /> + )} </Box> <Box position="relative" zIndex={4} width="100%"> <Flex className="headerBar" h={10} flexDir="column"> @@ -1384,7 +1382,6 @@ export const Graph = function (props: GraphProps) { }, } - console.log('hey') return ( <Box overflow="hidden" onClick={contextMenu.onClose}> {threeDim ? ( |