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.

21 lines
438 B

1 year ago
  1. import { IUser } from '@/types/user'
  2. import { useAtom } from 'jotai'
  3. import { useStyle } from './style.ts'
  4. import { Checkbox } from 'antd'
  5. export const Item = ( props: {
  6. value: IUser,
  7. onChange:( value: IUser)=>void
  8. } )=>{
  9. const { styles } = useStyle()
  10. return (
  11. <div className={styles.listItem}>
  12. <Checkbox value={props.value} onChange={e=>}>
  13. <span>{props.value.name}</span>
  14. </Checkbox>
  15. </div>
  16. )
  17. }