diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-10-17 01:14:41 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-10-17 01:14:41 +0200 |
commit | d1f02171bd4727fb0c09657d6fe0f21f5cde9617 (patch) | |
tree | c1f4e920c0cfa2e9a2dfa1605d242e25cd28bfdd /components/Tweaks/index.tsx | |
parent | 85b665b343d63096a3e62c210931040a44b07a1b (diff) | |
parent | ca2fa3dc8d405d0ec451f16b9fcc72cde6bbf470 (diff) |
feat(algos): merge
Diffstat (limited to 'components/Tweaks/index.tsx')
-rw-r--r-- | components/Tweaks/index.tsx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/components/Tweaks/index.tsx b/components/Tweaks/index.tsx index 0af25aa..a07559a 100644 --- a/components/Tweaks/index.tsx +++ b/components/Tweaks/index.tsx @@ -20,6 +20,7 @@ import { initialVisuals, initialMouse, initialBehavior, + initialLocal, TagColors, colorList, initialColoring, @@ -51,6 +52,8 @@ export interface TweakProps { setTagColors: any coloring: typeof initialColoring setColoring: any + local: typeof initialLocal + setLocal: any } export const Tweaks = (props: TweakProps) => { @@ -72,6 +75,8 @@ export const Tweaks = (props: TweakProps) => { setTagColors, coloring, setColoring, + local, + setLocal, } = props const [showTweaks, setShowTweaks] = usePersistantState('showTweaks', false) @@ -129,6 +134,9 @@ export const Tweaks = (props: TweakProps) => { setMouse(initialMouse) setPhysics(initialPhysics) setBehavior(initialBehavior) + setColoring(initialColoring) + setHighlightColor('purple.500') + setLocal(initialLocal) }} variant="subtle" size="sm" @@ -173,6 +181,7 @@ export const Tweaks = (props: TweakProps) => { highlightColor={highlightColor} colorList={colorList} tags={tags} + {...{ local, setLocal }} /> </AccordionPanel> </AccordionItem> |