From e81659da02679735615f667750e0c3377483f093 Mon Sep 17 00:00:00 2001
From: "Thomas F. K. Jorna" <thomasfkjorna@gmail.com>
Date: Thu, 22 Jul 2021 18:54:56 +0200
Subject: fixed dumb type mixup

---
 pages/index.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'pages/index.tsx')

diff --git a/pages/index.tsx b/pages/index.tsx
index ff0537f..522b047 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -258,8 +258,8 @@ export const SliderWithInfo = ({
 
 export interface EnableSectionProps {
   label: string
-  value: () => void
-  onChange: string
+  value: boolean | number
+  onChange: () => void
   infoText?: string
   children: React.ReactNode
 }
@@ -273,7 +273,7 @@ export const EnableSection = (props: EnableSectionProps) => {
           <Text>{label}</Text>
           {infoText && <InfoTooltip infoText={infoText} />}
         </Box>
-        <Switch isChecked={value} onChange={onChange} />
+        <Switch isChecked={!!value} onChange={onChange} />
       </Box>
       {value && children}
     </Box>
-- 
cgit v1.2.3

