From f81c600aaf55da87de623472545a99dc1b96a29f Mon Sep 17 00:00:00 2001 From: Bryan Lee Date: Fri, 12 Aug 2022 00:55:52 +0800 Subject: [PATCH] fix: type error --- .../editor-blocks/src/blocks/todo/CheckBox.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/components/editor-blocks/src/blocks/todo/CheckBox.tsx b/libs/components/editor-blocks/src/blocks/todo/CheckBox.tsx index badd4f6a60..59d0d20fb8 100644 --- a/libs/components/editor-blocks/src/blocks/todo/CheckBox.tsx +++ b/libs/components/editor-blocks/src/blocks/todo/CheckBox.tsx @@ -9,19 +9,19 @@ interface CheckBoxProps { } export const CheckBox: FC = ({ - size = '16px', - height = '23px', + size = 16, + height = 23, checked, onChange, }) => { const dynamic_style = useMemo( () => ({ height: { - height, + height: `${height}px`, }, size: { - width: size, - height: size, + width: `${size}px`, + height: `${size}px`, }, }), [height, size]