summaryrefslogtreecommitdiff
path: root/components/Tweaks/index.tsx
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-10-17 01:28:40 +0200
committerGitHub <[email protected]>2021-10-17 01:28:40 +0200
commit6ed792c982991b679d1c50060f4ca25b2eb1b9ca (patch)
treec1f4e920c0cfa2e9a2dfa1605d242e25cd28bfdd /components/Tweaks/index.tsx
parentca2fa3dc8d405d0ec451f16b9fcc72cde6bbf470 (diff)
parentd1f02171bd4727fb0c09657d6fe0f21f5cde9617 (diff)
Merge pull request #120 from org-roam/feat/community-detection
Feat/community detection
Diffstat (limited to 'components/Tweaks/index.tsx')
-rw-r--r--components/Tweaks/index.tsx12
1 files changed, 12 insertions, 0 deletions
diff --git a/components/Tweaks/index.tsx b/components/Tweaks/index.tsx
index cff0e78..a07559a 100644
--- a/components/Tweaks/index.tsx
+++ b/components/Tweaks/index.tsx
@@ -23,6 +23,7 @@ import {
initialLocal,
TagColors,
colorList,
+ initialColoring,
} from '../config'
import FilterPanel from './FilterPanel'
@@ -49,6 +50,8 @@ export interface TweakProps {
tags: string[]
tagColors: TagColors
setTagColors: any
+ coloring: typeof initialColoring
+ setColoring: any
local: typeof initialLocal
setLocal: any
}
@@ -70,6 +73,8 @@ export const Tweaks = (props: TweakProps) => {
tags,
tagColors,
setTagColors,
+ coloring,
+ setColoring,
local,
setLocal,
} = props
@@ -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"
@@ -200,6 +208,10 @@ export const Tweaks = (props: TweakProps) => {
highlightColor={highlightColor}
setHighlightColor={setHighlightColor}
threeDim={threeDim}
+ {...{
+ coloring,
+ setColoring,
+ }}
/>
</AccordionPanel>
</AccordionItem>