Skip to content

Commit

Permalink
fix: file renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
Riddhiagrawal001 committed Dec 19, 2023
1 parent 53dce80 commit 17f1172
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

<div className="flex flex-col gap-8">
<ConnectorAccountDetailsHelper.ConnectorConfigurationFields
Expand Down Expand Up @@ -286,7 +283,7 @@ let make = (
let (actionUrl, setActionUrl) = React.useState(_ => "")

let (setupAccountStatus, setSetupAccountStatus) = Recoil.useRecoilState(
SimpleConnectorFlowUtils.paypalAccountStatusAtom,
PayPalFlowUtils.paypalAccountStatusAtom,
)
let (suggestedAction, suggestedActionExists) = ConnectorUtils.getSuggestedAction(
~verifyErrorMessage,
Expand All @@ -295,7 +292,7 @@ let make = (

let onSubmitMain = async values => {
open ConnectorUtils
open SimpleConnectorFlowUtils
open PayPalFlowUtils
try {
setScreenState(_ => Loading)
let profileIdValue =
Expand Down Expand Up @@ -361,7 +358,7 @@ let make = (
}

let getStatus = async () => {
open SimpleConnectorFlowUtils
open PayPalFlowUtils
try {
setScreenState(_ => PageLoaderWrapper.Loading)
let profileId =
Expand Down
6 changes: 2 additions & 4 deletions src/screens/HyperSwitch/Connectors/ConnectorPreview.res
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down Expand Up @@ -282,7 +280,7 @@ let make = (
setCurrentStep(_ => ConnectorTypes.PaymentMethods)
}
let getStatus = async () => {
open SimpleConnectorFlowUtils
open PayPalFlowUtils
try {
setScreenState(_ => PageLoaderWrapper.Loading)

Expand Down

0 comments on commit 17f1172

Please sign in to comment.