You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
438 B
22 lines
438 B
import { IUser } from '@/types/user'
|
|
import { useAtom } from 'jotai'
|
|
import { useStyle } from './style.ts'
|
|
import { Checkbox } from 'antd'
|
|
|
|
export const Item = ( props: {
|
|
value: IUser,
|
|
onChange:( value: IUser)=>void
|
|
} )=>{
|
|
|
|
const { styles } = useStyle()
|
|
|
|
|
|
return (
|
|
<div className={styles.listItem}>
|
|
<Checkbox value={props.value} onChange={e=>}>
|
|
<span>{props.value.name}</span>
|
|
</Checkbox>
|
|
</div>
|
|
)
|
|
|
|
}
|