Feat/dataset notion import (#392)
Co-authored-by: StyleZhang <jasonapring2015@outlook.com> Co-authored-by: JzoNg <jzongcode@gmail.com>
This commit is contained in:
parent
f350948bde
commit
9253f72dea
96 changed files with 4479 additions and 367 deletions
19
web/app/components/base/checkbox/index.tsx
Normal file
19
web/app/components/base/checkbox/index.tsx
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import cn from 'classnames'
|
||||
import s from './index.module.css'
|
||||
|
||||
type CheckboxProps = {
|
||||
checked?: boolean
|
||||
onCheck?: () => void
|
||||
className?: string
|
||||
}
|
||||
|
||||
const Checkbox = ({ checked, onCheck, className }: CheckboxProps) => {
|
||||
return (
|
||||
<div
|
||||
className={cn(s.wrapper, checked && s.checked, 'w-4 h-4 border rounded border-gray-300', className)}
|
||||
onClick={onCheck}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
export default Checkbox
|
||||
Loading…
Add table
Add a link
Reference in a new issue