From a4e972e803e57340046518de59991c9eb7540253 Mon Sep 17 00:00:00 2001 From: Davit Date: Tue, 5 Sep 2023 16:04:33 +0400 Subject: [PATCH 1/3] fix modal bug, change confirm texts for user removal modals --- src/components/Organizations/AddUserToGroup/index.js | 6 +++--- src/components/Organizations/User/index.tsx | 4 ++-- src/components/Organizations/Users/index.js | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/Organizations/AddUserToGroup/index.js b/src/components/Organizations/AddUserToGroup/index.js index 21994d61..e19af108 100644 --- a/src/components/Organizations/AddUserToGroup/index.js +++ b/src/components/Organizations/AddUserToGroup/index.js @@ -46,7 +46,7 @@ let options = [ */ export const AddUserToGroup = ({ group, - closeModal, + close, inputValueEmail, setInputValue, selectedRole, @@ -62,7 +62,7 @@ export const AddUserToGroup = ({ if (data) { onAddUser().then(() => { setInputValue({ target: { value: '' } }); - closeModal(); + close(); }); } return ( @@ -114,7 +114,7 @@ export const AddUserToGroup = ({ > Add - diff --git a/src/components/Organizations/User/index.tsx b/src/components/Organizations/User/index.tsx index 76480d34..d267b830 100644 --- a/src/components/Organizations/User/index.tsx +++ b/src/components/Organizations/User/index.tsx @@ -122,9 +122,9 @@ const User: FC = ({ user, organizationName, organizationId, refetch } isOpen={groupModalOpen && selectedGroup === group?.id} onRequestClose={closeGroupModal} > -

Are you sure?

+

Remove user?

- 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.