feature: add checkbox on people cells

This commit is contained in:
Sammy Teillet 2023-04-18 16:40:49 +02:00
parent e8f85f2a29
commit 81da0f4e03
No known key found for this signature in database
GPG Key ID: 687E513E74D28696

View File

@ -105,11 +105,18 @@ const columns = [
columnHelper.accessor('fullName', { columnHelper.accessor('fullName', {
header: () => <ColumnHead viewName="People" viewIcon={faUser} />, header: () => <ColumnHead viewName="People" viewIcon={faUser} />,
cell: (props) => ( cell: (props) => (
<CellLink <>
name={props.row.original.fullName} <input
picture={props.row.original.picture} type="checkbox"
href="#" id={`person-selected-${props.row.original.email}`}
/> name={`person-selected${props.row.original.email}`}
></input>
<CellLink
name={props.row.original.fullName}
picture={props.row.original.picture}
href="#"
/>
</>
), ),
}), }),
columnHelper.accessor('email', { columnHelper.accessor('email', {