Merge pull request #202 from liby/bugfix/fix-type-error

fix: type error
This commit is contained in:
DarkSky
2022-08-12 01:10:48 +08:00
committed by GitHub
@@ -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]