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

View File

@@ -9,19 +9,19 @@ interface CheckBoxProps {
} }
export const CheckBox: FC<CheckBoxProps> = ({ export const CheckBox: FC<CheckBoxProps> = ({
size = '16px', size = 16,
height = '23px', height = 23,
checked, checked,
onChange, onChange,
}) => { }) => {
const dynamic_style = useMemo( const dynamic_style = useMemo(
() => ({ () => ({
height: { height: {
height, height: `${height}px`,
}, },
size: { size: {
width: size, width: `${size}px`,
height: size, height: `${size}px`,
}, },
}), }),
[height, size] [height, size]