Skip to content

Commit

Permalink
fix modal bug, change confirm texts for user removal modals
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveDarsa committed Sep 5, 2023
1 parent 5e1ec04 commit a4e972e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/components/Organizations/AddUserToGroup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ let options = [
*/
export const AddUserToGroup = ({
group,
closeModal,
close,
inputValueEmail,
setInputValue,
selectedRole,
Expand All @@ -62,7 +62,7 @@ export const AddUserToGroup = ({
if (data) {
onAddUser().then(() => {
setInputValue({ target: { value: '' } });
closeModal();
close();
});
}
return (
Expand Down Expand Up @@ -114,7 +114,7 @@ export const AddUserToGroup = ({
>
Add
</Button>
<Button variant="ghost" action={() => closeModal()}>
<Button variant="ghost" action={() => close()}>
Cancel
</Button>
</Footer>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Organizations/User/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ const User: FC<UserProps> = ({ user, organizationName, organizationId, refetch }
isOpen={groupModalOpen && selectedGroup === group?.id}
onRequestClose={closeGroupModal}
>
<h3 style={{ fontSize: '24px', lineHeight: '24px', paddingTop: '32px' }}>Are you sure?</h3>
<h3 style={{ fontSize: '24px', lineHeight: '24px', paddingTop: '32px' }}>Remove user?</h3>
<p style={{ fontSize: '16px', lineHeight: '24px' }}>
This action will delete this entry, you might not be able to get this back.
This action will remove this user from a group, you might not be able to get this back.
</p>

<Footer>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Organizations/Users/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ const Users = ({ users = [], organization, organizationId, organizationName, ref
}}
/>
<Modal isOpen={deleteUserModalOpen && selectedUser === user?.id} onRequestClose={closeUserModal}>
<h3 style={{ fontSize: '24px', lineHeight: '24px', paddingTop: '32px' }}>Are you sure?</h3>
<h3 style={{ fontSize: '24px', lineHeight: '24px', paddingTop: '32px' }}>Remove user?</h3>
<p style={{ fontSize: '16px', lineHeight: '24px' }}>
This action will delete this entry, you might not be able to get this back.
This action will remove this user from all groups, you might not be able to reverse this.
</p>

<Footer>
Expand Down

0 comments on commit a4e972e

Please sign in to comment.