diff --git a/src/screens/HyperSwitch/APIUtils/APIUtils.res b/src/screens/HyperSwitch/APIUtils/APIUtils.res index b66e3f52d..391184fe0 100644 --- a/src/screens/HyperSwitch/APIUtils/APIUtils.res +++ b/src/screens/HyperSwitch/APIUtils/APIUtils.res @@ -177,9 +177,9 @@ let getURL = ( | #USER_DATA => `${userUrl}/data` | #MERCHANT_DATA => `${userUrl}/data` | #INVITE - | #RESEND_INVITE => - `${userUrl}/user/${(userType :> string)->Js.String2.toLowerCase}` - | #SWITCH_MERCHANT => + | // | #RESEND_INVITE => + // `${userUrl}/user/${(userType :> string)->Js.String2.toLowerCase}` + #SWITCH_MERCHANT => switch methodType { | Get => `${userUrl}/switch/list` | _ => `${userUrl}/${(userType :> string)->Js.String2.toLowerCase}` diff --git a/src/screens/HyperSwitch/APIUtils/APIUtilsTypes.res b/src/screens/HyperSwitch/APIUtils/APIUtilsTypes.res index 3994dbf07..b2ddb2af2 100644 --- a/src/screens/HyperSwitch/APIUtils/APIUtilsTypes.res +++ b/src/screens/HyperSwitch/APIUtils/APIUtilsTypes.res @@ -51,8 +51,8 @@ type userType = [ | #MERCHANT_DATA | #USER_DATA | #INVITE - | #RESEND_INVITE - | #CREATE_MERCHANT + | // | #RESEND_INVITE + #CREATE_MERCHANT | #OSSSIGNIN | #OSSSIGNUP | #NONE diff --git a/src/screens/HyperSwitch/UserManagement/ShowUserData.res b/src/screens/HyperSwitch/UserManagement/ShowUserData.res index e5a88bd68..cedb33d7d 100644 --- a/src/screens/HyperSwitch/UserManagement/ShowUserData.res +++ b/src/screens/HyperSwitch/UserManagement/ShowUserData.res @@ -6,22 +6,22 @@ external typeConversion: array> => module UserHeading = { @react.component - let make = (~infoValue: UserRoleEntity.userTableTypes, ~userId) => { - open APIUtils - let showToast = ToastState.useShowToast() - let updateDetails = useUpdateMethod() + let make = (~infoValue: UserRoleEntity.userTableTypes, ~userId as _) => { + // open APIUtils + // let showToast = ToastState.useShowToast() + // let updateDetails = useUpdateMethod() let status = infoValue.status->UserRoleEntity.statusToVariantMapper - 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_ - let _ = await updateDetails(url, body, Post) - showToast(~message=`Invite resend. Please check your email.`, ~toastType=ToastSuccess, ()) - } catch { - | _ => () - } - } + // 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_ + // let _ = await updateDetails(url, body, Post) + // showToast(~message=`Invite resend. Please check your email.`, ~toastType=ToastSuccess, ()) + // } catch { + // | _ => () + // } + // }
infoValue.status->Js.String2.toUpperCase->React.string }}
- -