diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-07-25 14:04:59 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-07-25 14:04:59 +0200 |
commit | 9b9d28e267f88d1fe491fb781fa6893d21cde540 (patch) | |
tree | aac22c1a4074a614fbfbfc6828e1784ba1d6dc80 | |
parent | 24799ec72c39183c7aa156994077e0d5370388e0 (diff) |
make toggle work with filenods
-rw-r--r-- | components/tweaks.tsx | 18 | ||||
-rw-r--r-- | 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 <Box position="absolute" zIndex="overlay" marginTop="2%" marginLeft="2%"> - <IconButton - aria-label="Settings" - icon={<SettingsIcon />} - onClick={() => setShowTweaks(true)} - /> - </Box> + return ( + <Box position="absolute" zIndex="overlay" marginTop="2%" marginLeft="2%"> + <IconButton + aria-label="Settings" + icon={<SettingsIcon />} + onClick={() => setShowTweaks(true)} + /> + </Box> + ) } return ( @@ -98,7 +100,7 @@ export const Tweaks = (props: TweakProps) => { </AccordionButton> <AccordionPanel> <Flex justifyContent="space-between"> - <Text>Kill orphans</Text> + <Text>Orphans</Text> <Switch colorScheme="purple" onChange={() => { 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', })) }) |