diff --git a/src/screens/HyperSwitch/Connectors/SimpleConnectorFlow/ConnectPayPal.res b/src/screens/HyperSwitch/Connectors/ConnectPayPalFlow/ConnectPayPal.res similarity index 97% rename from src/screens/HyperSwitch/Connectors/SimpleConnectorFlow/ConnectPayPal.res rename to src/screens/HyperSwitch/Connectors/ConnectPayPalFlow/ConnectPayPal.res index eb35556e5..18856dbbe 100644 --- a/src/screens/HyperSwitch/Connectors/SimpleConnectorFlow/ConnectPayPal.res +++ b/src/screens/HyperSwitch/Connectors/ConnectPayPalFlow/ConnectPayPal.res @@ -59,11 +59,8 @@ module ManualSetupScreen = { ~configuartionType, ~connectorLabelDetailField, ) => { - let setupAccountStatus = Recoil.useRecoilValueFromAtom( - SimpleConnectorFlowUtils.paypalAccountStatusAtom, - ) - let bodyType = - isUpdateFlow->SimpleConnectorFlowUtils.getBodyType(configuartionType, setupAccountStatus) + let setupAccountStatus = Recoil.useRecoilValueFromAtom(PayPalFlowUtils.paypalAccountStatusAtom) + let bodyType = isUpdateFlow->PayPalFlowUtils.getBodyType(configuartionType, setupAccountStatus)
"") let (setupAccountStatus, setSetupAccountStatus) = Recoil.useRecoilState( - SimpleConnectorFlowUtils.paypalAccountStatusAtom, + PayPalFlowUtils.paypalAccountStatusAtom, ) let (suggestedAction, suggestedActionExists) = ConnectorUtils.getSuggestedAction( ~verifyErrorMessage, @@ -295,7 +292,7 @@ let make = ( let onSubmitMain = async values => { open ConnectorUtils - open SimpleConnectorFlowUtils + open PayPalFlowUtils try { setScreenState(_ => Loading) let profileIdValue = @@ -361,7 +358,7 @@ let make = ( } let getStatus = async () => { - open SimpleConnectorFlowUtils + open PayPalFlowUtils try { setScreenState(_ => PageLoaderWrapper.Loading) let profileId = diff --git a/src/screens/HyperSwitch/Connectors/SimpleConnectorFlow/SimpleConnectorFlowUtils.res b/src/screens/HyperSwitch/Connectors/ConnectPayPalFlow/PayPalFlowUtils.res similarity index 100% rename from src/screens/HyperSwitch/Connectors/SimpleConnectorFlow/SimpleConnectorFlowUtils.res rename to src/screens/HyperSwitch/Connectors/ConnectPayPalFlow/PayPalFlowUtils.res diff --git a/src/screens/HyperSwitch/Connectors/ConnectorPreview.res b/src/screens/HyperSwitch/Connectors/ConnectorPreview.res index e25277fe0..6c5482a1a 100644 --- a/src/screens/HyperSwitch/Connectors/ConnectorPreview.res +++ b/src/screens/HyperSwitch/Connectors/ConnectorPreview.res @@ -246,9 +246,7 @@ let make = ( let (screenState, setScreenState) = React.useState(_ => PageLoaderWrapper.Success) let connectorInfo = connectorInfo->LogicUtils.getDictFromJsonObject->ConnectorTableUtils.getProcessorPayloadType - let setSetupAccountStatus = Recoil.useSetRecoilState( - SimpleConnectorFlowUtils.paypalAccountStatusAtom, - ) + let setSetupAccountStatus = Recoil.useSetRecoilState(PayPalFlowUtils.paypalAccountStatusAtom) let isFeedbackModalToBeOpen = featureFlagDetails.feedback && @@ -282,7 +280,7 @@ let make = ( setCurrentStep(_ => ConnectorTypes.PaymentMethods) } let getStatus = async () => { - open SimpleConnectorFlowUtils + open PayPalFlowUtils try { setScreenState(_ => PageLoaderWrapper.Loading)