From 9b9d28e267f88d1fe491fb781fa6893d21cde540 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Sun, 25 Jul 2021 14:04:59 +0200 Subject: make toggle work with filenods --- components/tweaks.tsx | 18 ++++++++++-------- pages/index.tsx | 2 +- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/components/tweaks.tsx b/components/tweaks.tsx index ab5a6a7..d337b59 100644 --- a/components/tweaks.tsx +++ b/components/tweaks.tsx @@ -43,13 +43,15 @@ export const Tweaks = (props: TweakProps) => { const [showTweaks, setShowTweaks] = useState(true) if (!showTweaks) { - return - } - onClick={() => setShowTweaks(true)} - /> - + return ( + + } + onClick={() => setShowTweaks(true)} + /> + + ) } return ( @@ -98,7 +100,7 @@ export const Tweaks = (props: TweakProps) => { - Kill orphans + Orphans { diff --git a/pages/index.tsx b/pages/index.tsx index 3e8e3dd..8c97a79 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -82,7 +82,7 @@ export function GraphPage() { return headingNodes.map((headingNode) => ({ source: headingNode.id, target: fileNode.id, - type: 'id', + type: 'parent', })) }) -- cgit v1.2.3