fix: type error

This commit is contained in:
Bryan Lee committed 2022-08-12 00:55:52 +08:00
1 parent 09b8c9c8bc
commit f81c600aaf
1 file changed
+5 -5
@@ -9,19 +9,19 @@ interface CheckBoxProps {
}
export const CheckBox: FC<CheckBoxProps> = ({
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]