From 4b6b8c4e37b8f4f18ca016a4d5cf46680866f276 Mon Sep 17 00:00:00 2001 From: kartikvirendrar Date: Tue, 30 Jul 2024 14:56:22 +0530 Subject: [PATCH] changes for reinvite user --- src/containers/UserManagement/EditProfile.jsx | 19 ++++++++ .../actions/api/User/ResendUserInvite.js | 45 +++++++++++++++++++ src/redux/actions/index.js | 4 +- 3 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 src/redux/actions/api/User/ResendUserInvite.js diff --git a/src/containers/UserManagement/EditProfile.jsx b/src/containers/UserManagement/EditProfile.jsx index 6baae5e0..d020e80e 100644 --- a/src/containers/UserManagement/EditProfile.jsx +++ b/src/containers/UserManagement/EditProfile.jsx @@ -38,6 +38,7 @@ import { setSnackBar, UpdateUserRoleAPI, FetchUserRolesAPI, + ResendUserInviteAPI, } from "redux/actions"; const EditProfile = () => { @@ -217,6 +218,12 @@ const EditProfile = () => { ); }; + const handleReinvite = () => { + let apiObj; + apiObj = new ResendUserInviteAPI([userData.email]); + dispatch(APITransport(apiObj)); + }; + const handleSubmit = () => { let updateProfileReqBody = { username: userDetails.username, @@ -452,8 +459,20 @@ const EditProfile = () => { direction="row" justifyContent="flex-end" alignItems="center" + gap={4} sx={{ my: 5, px: "9.75%" }} > + {userData.has_accepted_invite === false && + + }