From e81659da02679735615f667750e0c3377483f093 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" 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(-) 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) => { {label} {infoText && } - + {value && children} -- cgit v1.2.3