Skip to content
Snippets Groups Projects
Unverified Commit 7e2d4e0b authored by Samuel Couillard's avatar Samuel Couillard Committed by GitHub
Browse files

Fix SharedAccess checkbox (#4726)

parent b8d99362
No related branches found
No related tags found
No related merge requests found
......@@ -41,22 +41,20 @@ export default function SharedAccessForm({ handleClose }) {
<tr
key={user.id}
className="align-middle"
onClick={() => {
const checkbox = document.getElementById(`${user.id}-checkbox`);
checkbox.checked = !checkbox.checked;
}}
>
<td>
<Stack direction="horizontal" className="py-2">
<Form.Label className="w-100 mb-0 text-brand">
<Form.Check
id={`${user.id}-checkbox`}
type="checkbox"
value={user.id}
className="pe-3"
className="d-inline-block"
{...register('shared_users')}
/>
<Avatar avatar={user.avatar} size="small" />
<h6 className="text-brand mb-0 ps-3"> {user.name} </h6>
<Avatar avatar={user.avatar} size="small" className="d-inline-block px-3" />
{user.name}
</Form.Label>
</Stack>
</td>
</tr>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment