mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-23 20:18:42 +08:00
fix: type error
This commit is contained in:
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user