Skip to content

Commit 41dc57e

Browse files
committed
prettier fixes
1 parent 6a2d44f commit 41dc57e

File tree

1 file changed

+18
-15
lines changed
  • src/pages/ReimbursementAccount/NonUSD/SignerInfo

1 file changed

+18
-15
lines changed

src/pages/ReimbursementAccount/NonUSD/SignerInfo/index.tsx

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
import { ComponentType, useMemo } from "react";
2-
import React, {useEffect, useState} from 'react';
1+
import type {ComponentType} from 'react';
2+
import React, {useEffect, useMemo, useState} from 'react';
33
import {useOnyx} from 'react-native-onyx';
44
import InteractiveStepWrapper from '@components/InteractiveStepWrapper';
55
import YesNoStep from '@components/SubStepForms/YesNoStep';
66
import useLocalize from '@hooks/useLocalize';
77
import useSubStep from '@hooks/useSubStep';
88
import type {SubStepProps} from '@hooks/useSubStep/types';
99
import Navigation from '@navigation/Navigation';
10+
import getSubstepValues from '@pages/ReimbursementAccount/utils/getSubstepValues';
1011
import * as BankAccounts from '@userActions/BankAccounts';
1112
import CONST from '@src/CONST';
1213
import ONYXKEYS from '@src/ONYXKEYS';
@@ -18,7 +19,6 @@ import DateOfBirth from './substeps/DateOfBirth';
1819
import JobTitle from './substeps/JobTitle';
1920
import Name from './substeps/Name';
2021
import UploadDocuments from './substeps/UploadDocuments';
21-
import getSubstepValues from "@pages/ReimbursementAccount/utils/getSubstepValues";
2222

2323
type SignerInfoProps = {
2424
/** Handles back button press */
@@ -83,18 +83,21 @@ function SignerInfo({onBackButtonPress, onSubmit}: SignerInfoProps) {
8383
if (currency === CONST.CURRENCY.AUD) {
8484
setCurrentSubStep(SUBSTEP.ENTER_EMAIL);
8585
} else {
86-
BankAccounts.saveCorpayOnboardingDirectorInformation({
87-
signerFullName: onyxValues[INPUT_KEYS.SIGNER_FULL_NAME],
88-
signerDateOfBirth: onyxValues[INPUT_KEYS.SIGNER_DATE_OF_BIRTH],
89-
signerJobTitle: onyxValues[INPUT_KEYS.SIGNER_JOB_TITLE],
90-
signerEmail: onyxValues[INPUT_KEYS.SIGNER_EMAIL],
91-
signerCompleteResidentialAddress: onyxValues[INPUT_KEYS.SIGNER_COMPLETE_RESIDENTIAL_ADDRESS],
92-
secondSignerFullName: onyxValues[INPUT_KEYS.SECOND_SIGNER_FULL_NAME],
93-
secondSignerDateOfBirth: onyxValues[INPUT_KEYS.SECOND_SIGNER_DATE_OF_BIRTH],
94-
secondSignerJobTitle: onyxValues[INPUT_KEYS.SECOND_SIGNER_JOB_TITLE],
95-
secondSignerEmail: onyxValues[INPUT_KEYS.SECOND_SIGNER_EMAIL],
96-
secondSignerCompleteResidentialAddress: onyxValues[INPUT_KEYS.SECOND_SIGNER_COMPLETE_RESIDENTIAL_ADDRESS],
97-
}, bankAccountID);
86+
BankAccounts.saveCorpayOnboardingDirectorInformation(
87+
{
88+
signerFullName: onyxValues[INPUT_KEYS.SIGNER_FULL_NAME],
89+
signerDateOfBirth: onyxValues[INPUT_KEYS.SIGNER_DATE_OF_BIRTH],
90+
signerJobTitle: onyxValues[INPUT_KEYS.SIGNER_JOB_TITLE],
91+
signerEmail: onyxValues[INPUT_KEYS.SIGNER_EMAIL],
92+
signerCompleteResidentialAddress: onyxValues[INPUT_KEYS.SIGNER_COMPLETE_RESIDENTIAL_ADDRESS],
93+
secondSignerFullName: onyxValues[INPUT_KEYS.SECOND_SIGNER_FULL_NAME],
94+
secondSignerDateOfBirth: onyxValues[INPUT_KEYS.SECOND_SIGNER_DATE_OF_BIRTH],
95+
secondSignerJobTitle: onyxValues[INPUT_KEYS.SECOND_SIGNER_JOB_TITLE],
96+
secondSignerEmail: onyxValues[INPUT_KEYS.SECOND_SIGNER_EMAIL],
97+
secondSignerCompleteResidentialAddress: onyxValues[INPUT_KEYS.SECOND_SIGNER_COMPLETE_RESIDENTIAL_ADDRESS],
98+
},
99+
bankAccountID,
100+
);
98101
onSubmit();
99102
}
100103
};

0 commit comments

Comments
 (0)