Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EES-5568 Adding modal for admins deleting users #5342

Merged
merged 3 commits into from
Oct 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import styles from './BauUsersPage.module.scss';
const BauUsersPage = () => {
const { value, isLoading } = useAsyncRetry(() => userService.getUsers());

// const handleDeleteUser = async (userEmail: string) => { // EES-5573
// EES-5573
// const handleDeleteUser = async (userEmail: string) => {
// await userService
// .deleteUser(userEmail)
// .then(() => {
Expand Down Expand Up @@ -56,12 +57,23 @@ const BauUsersPage = () => {
Manage
</Link>
{/* EES-5573 */}
{/* <ButtonText */}
{/* onClick={() => handleDeleteUser(user.email)} */}
{/* className={styles.deleteUserButton} */}
{/* > */}
{/* Delete */}
{/* </ButtonText> */}
{/* <ModalConfirm
title="Confirm you want to delete this user"
triggerButton={
<ButtonText className={styles.deleteUserButton}>
Delete
</ButtonText>
}
onConfirm={async () => await handleDeleteUser(user.email)}
>
<p>
By deleting this User you will remove all access and
permissions they have on the service. This change cannot
be reversed. Users who are removed and then need access
at a later point will need to be re-invited to the
service as a new user.
</p>
</ModalConfirm> */}
</td>
</tr>
))}
Expand Down