From efcd462a69f5686433bc46b4f2a98139b8bf57f1 Mon Sep 17 00:00:00 2001 From: JzoNg Date: Mon, 12 Aug 2024 13:15:36 +0800 Subject: [PATCH] fix style of switch --- web/app/components/base/switch/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/base/switch/index.tsx b/web/app/components/base/switch/index.tsx index b3d6067204..f61c6f46ff 100644 --- a/web/app/components/base/switch/index.tsx +++ b/web/app/components/base/switch/index.tsx @@ -11,7 +11,7 @@ type SwitchProps = { className?: string } -const Switch = ({ onChange, size = 'lg', defaultValue = false, disabled = false, className }: SwitchProps) => { +const Switch = ({ onChange, size = 'md', defaultValue = false, disabled = false, className }: SwitchProps) => { const [enabled, setEnabled] = useState(defaultValue) useEffect(() => { setEnabled(defaultValue)