summaryrefslogtreecommitdiff
path: root/app/components/tweaks
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-07-18 00:29:01 +0200
committerThomas F. K. Jorna <[email protected]>2021-07-18 00:29:01 +0200
commitecfd4f05bd32c3942580a5b01f021b2acdff4b54 (patch)
tree7597a3f85f616e3fd95579baf352a06a61201f2c /app/components/tweaks
parent85ba3ce12f4e4f473d2ee2fb595854091baae803 (diff)
fixed not being able to save tweaks + formatting
Diffstat (limited to 'app/components/tweaks')
-rw-r--r--app/components/tweaks/tweaks.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/components/tweaks/tweaks.tsx b/app/components/tweaks/tweaks.tsx
index a67b723..d2b5bd1 100644
--- a/app/components/tweaks/tweaks.tsx
+++ b/app/components/tweaks/tweaks.tsx
@@ -44,7 +44,7 @@ export const Tweaks = observer(function Tweaks(props: TweaksProps): JSX.Element
<Text preset="fieldLabel" text="Gravity" />
<Switch style={{ width: "5", height: 20, marginVertical: 10 }}
value={physics.gravityOn}
- onValueChange={() => { setPhysics({ ...physics, gravityOn: !physics.gravityOn })}}
+ onValueChange={() => { setPhysics({ ...physics, gravityOn: !physics.gravityOn }) }}
/>
<Text preset="fieldLabel" text={"Gravity: " + physics.gravity} />
<Slider style={{ height: 40, width: "90%" }}
@@ -116,12 +116,12 @@ export const Tweaks = observer(function Tweaks(props: TweaksProps): JSX.Element
<Text preset="fieldLabel" text="Colorful" />
<Switch style={{ width: "5", height: 20, marginVertical: 10 }}
value={physics.colorful}
- onValueChange={() => { setPhysics({ ...physics, colorful: !physics.colorful })}}
+ onValueChange={() => { setPhysics({ ...physics, colorful: !physics.colorful }) }}
/>
<Text preset="fieldLabel" text="Hover highlight" />
<Switch style={{ width: "5", height: 20, marginVertical: 10 }}
value={physics.hover}
- onValueChange={() => { setPhysics({ ...physics, hover: !physics.hover })}}
+ onValueChange={() => { setPhysics({ ...physics, hover: !physics.hover }) }}
/>
<Text preset="fieldLabel" text={"Line Opacity: " + physics.linkOpacity} />
<Slider style={{ height: 40, width: "90%" }}