From 35516226ad3e784626812e4a3be09dcb165a867d Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja <77892330+PritishBudhiraja@users.noreply.github.com> Date: Wed, 20 Dec 2023 19:21:41 +0530 Subject: [PATCH 1/4] feat: Resend Invite Removal (#121) --- src/screens/HyperSwitch/APIUtils/APIUtils.res | 1 + .../UserManagement/ShowUserData.res | 18 +++++++++--------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/screens/HyperSwitch/APIUtils/APIUtils.res b/src/screens/HyperSwitch/APIUtils/APIUtils.res index b66e3f52d..c4ed16b9f 100644 --- a/src/screens/HyperSwitch/APIUtils/APIUtils.res +++ b/src/screens/HyperSwitch/APIUtils/APIUtils.res @@ -179,6 +179,7 @@ let getURL = ( | #INVITE | #RESEND_INVITE => `${userUrl}/user/${(userType :> string)->Js.String2.toLowerCase}` + | #SWITCH_MERCHANT => switch methodType { | Get => `${userUrl}/switch/list` diff --git a/src/screens/HyperSwitch/UserManagement/ShowUserData.res b/src/screens/HyperSwitch/UserManagement/ShowUserData.res index e5a88bd68..1f01211cb 100644 --- a/src/screens/HyperSwitch/UserManagement/ShowUserData.res +++ b/src/screens/HyperSwitch/UserManagement/ShowUserData.res @@ -12,7 +12,7 @@ module UserHeading = { let updateDetails = useUpdateMethod() let status = infoValue.status->UserRoleEntity.statusToVariantMapper - let resendInvite = async () => { + let _resendInvite = async () => { try { let url = getURL(~entityName=USERS, ~userType=#RESEND_INVITE, ~methodType=Post, ()) let body = [("user_id", userId->Js.Json.string)]->Js.Dict.fromArray->Js.Json.object_ @@ -38,14 +38,14 @@ module UserHeading = { | _ => infoValue.status->Js.String2.toUpperCase->React.string }} - -