mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 03:48:39 +00:00
fix: type error
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user