fix: type error

This commit is contained in:
Bryan Lee
2022-08-12 00:55:52 +08:00
parent 09b8c9c8bc
commit f81c600aaf

View File

@@ -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]