diff options
Diffstat (limited to 'pages/index.tsx')
-rw-r--r-- | pages/index.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
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> |