diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-10-11 02:02:33 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-10-11 02:02:33 +0200 |
commit | 256ce2c5c0617d3f59817a4c6308161ce22c7ba2 (patch) | |
tree | e3bba636cf29e7b5053d6f2eb77dbaf1ace0ef26 /pages/index.tsx | |
parent | 1fec0c6412d5d1e509d4057b4f94d14eee8fe028 (diff) |
chore: merge and build preview
Diffstat (limited to 'pages/index.tsx')
-rw-r--r-- | pages/index.tsx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pages/index.tsx b/pages/index.tsx index 8bc42a0..05142b2 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -723,10 +723,6 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) { } = props const { dailyDir, roamDir } = variables - // react-force-graph does not track window size - // https://github.com/vasturiano/react-force-graph/issues/233 - // does not work below a certain width - const [windowWidth, windowHeight] = useWindowSize() const [hoverNode, setHoverNode] = useState<NodeObject | null>(null) @@ -738,6 +734,7 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) { switch (click) { case mouse.preview: { setPreviewNode(node) + break } case mouse.local: { handleLocal(node, behavior.localSame) |