summaryrefslogtreecommitdiff
path: root/components/Tweaks/index.tsx
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-10-15 13:37:53 +0200
committerThomas F. K. Jorna <[email protected]>2021-10-15 13:37:53 +0200
commitcab6dae73e524e3917500583b169fd81bf3f9487 (patch)
tree41004376dd5e4546e32f0182ae7c30ed13d323b0 /components/Tweaks/index.tsx
parent556a3caa4371a5cbc661b29622f0effad4f52671 (diff)
feat(neighbs): add ability to show nth neighbor
Diffstat (limited to 'components/Tweaks/index.tsx')
-rw-r--r--components/Tweaks/index.tsx6
1 files changed, 6 insertions, 0 deletions
diff --git a/components/Tweaks/index.tsx b/components/Tweaks/index.tsx
index afd0ea7..cff0e78 100644
--- a/components/Tweaks/index.tsx
+++ b/components/Tweaks/index.tsx
@@ -20,6 +20,7 @@ import {
initialVisuals,
initialMouse,
initialBehavior,
+ initialLocal,
TagColors,
colorList,
} from '../config'
@@ -48,6 +49,8 @@ export interface TweakProps {
tags: string[]
tagColors: TagColors
setTagColors: any
+ local: typeof initialLocal
+ setLocal: any
}
export const Tweaks = (props: TweakProps) => {
@@ -67,6 +70,8 @@ export const Tweaks = (props: TweakProps) => {
tags,
tagColors,
setTagColors,
+ local,
+ setLocal,
} = props
const [showTweaks, setShowTweaks] = usePersistantState('showTweaks', false)
@@ -168,6 +173,7 @@ export const Tweaks = (props: TweakProps) => {
highlightColor={highlightColor}
colorList={colorList}
tags={tags}
+ {...{ local, setLocal }}
/>
</AccordionPanel>
</AccordionItem>