summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-07-31 00:35:29 +0200
committerThomas F. K. Jorna <[email protected]>2021-07-31 00:35:29 +0200
commitbecbc14293c38e131c8ce579ef459783b988a9f5 (patch)
treed54a631ce29233d2e71c66fd4609f25e7b9c7925 /components
parent1845a260fb81018294a8673e5af545f30928c40a (diff)
removed ! which made orphans fail
Diffstat (limited to 'components')
-rw-r--r--components/tweaks.tsx13
1 files changed, 3 insertions, 10 deletions
diff --git a/components/tweaks.tsx b/components/tweaks.tsx
index 393a0fe..e7653df 100644
--- a/components/tweaks.tsx
+++ b/components/tweaks.tsx
@@ -1072,31 +1072,24 @@ export const Tweaks = (props: TweakProps) => {
<SliderWithInfo
label="Animation speed"
onChange={(v) => setVisuals({ ...visuals, animationSpeed: v })}
- value={physics.animationSpeed}
+ value={visuals.animationSpeed}
infoText="Slower speed has a chance of being buggy"
min={50}
max={1000}
step={10}
/>
<Select
- placeholder={physics.algorithmName}
+ placeholder={visuals.algorithmName}
onChange={(v) => {
setVisuals({ ...visuals, algorithmName: v.target.value })
}}
>
- {physics.algorithmOptions.map((opt: string) => (
+ {visuals.algorithmOptions.map((opt: string) => (
<option key={opt} value={opt}>
{opt}
</option>
))}
</Select>
- {/* <DropDownMenu
- displayValue={physics.algorithmName}
- textArray={physics.algorithmOptions}
- onClickArray={physics.algorithmOptions.map((option) =>
- setVisuals({ ...visuals, algorithmName: { option } }),
- )}
- /> */}
</EnableSection>
</VStack>
</EnableSection>