Add deletion for registration tokens

This commit is contained in:
Manuel
2023-07-29 21:21:21 +02:00
parent 2db3d1405b
commit cb0b8869e2
4 changed files with 84 additions and 18 deletions

View File

@@ -68,7 +68,15 @@ const ManageUserInvitesPage = () => {
)}
</td>
<td>
<ActionIcon onClick={() => {}} color="red" variant="light">
<ActionIcon onClick={() => {
modals.openContextModal({
modal: 'deleteRegistrationTokenModal',
title: <Text weight="bold">Delete registration token</Text>,
innerProps: {
tokenId: token.id,
}
})
}} color="red" variant="light">
<IconTrash size="1rem" />
</ActionIcon>
</td>