fix: add notion page in knowledge (#5430)
This commit is contained in:
parent
3db110c0b9
commit
0d20df9a51
4 changed files with 43 additions and 9 deletions
|
|
@ -5,13 +5,25 @@ type CheckboxProps = {
|
|||
checked?: boolean
|
||||
onCheck?: () => void
|
||||
className?: string
|
||||
disabled?: boolean
|
||||
}
|
||||
|
||||
const Checkbox = ({ checked, onCheck, className }: CheckboxProps) => {
|
||||
const Checkbox = ({ checked, onCheck, className, disabled }: CheckboxProps) => {
|
||||
return (
|
||||
<div
|
||||
className={cn(s.wrapper, checked && s.checked, 'w-4 h-4 border rounded border-gray-300', className)}
|
||||
onClick={onCheck}
|
||||
className={cn(
|
||||
s.wrapper,
|
||||
checked && s.checked,
|
||||
disabled && s.disabled,
|
||||
'w-4 h-4 border rounded border-gray-300',
|
||||
className,
|
||||
)}
|
||||
onClick={() => {
|
||||
if (disabled)
|
||||
return
|
||||
|
||||
onCheck?.()
|
||||
}}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue