From cab6dae73e524e3917500583b169fd81bf3f9487 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Fri, 15 Oct 2021 13:37:53 +0200 Subject: feat(neighbs): add ability to show nth neighbor --- components/Tweaks/index.tsx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'components/Tweaks/index.tsx') 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 }} /> -- cgit v1.2.3