fix: type error

This commit is contained in:
Bryan Lee
2022-08-12 00:55:52 +08:00
parent 09b8c9c8bc
commit f81c600aaf
@@ -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]