Skip to content

Commit

Permalink
prettier fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
burczu committed Dec 2, 2024
1 parent 6a2d44f commit 41dc57e
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions src/pages/ReimbursementAccount/NonUSD/SignerInfo/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { ComponentType, useMemo } from "react";
import React, {useEffect, useState} from 'react';
import type {ComponentType} from 'react';
import React, {useEffect, useMemo, useState} from 'react';
import {useOnyx} from 'react-native-onyx';
import InteractiveStepWrapper from '@components/InteractiveStepWrapper';
import YesNoStep from '@components/SubStepForms/YesNoStep';
import useLocalize from '@hooks/useLocalize';
import useSubStep from '@hooks/useSubStep';
import type {SubStepProps} from '@hooks/useSubStep/types';
import Navigation from '@navigation/Navigation';
import getSubstepValues from '@pages/ReimbursementAccount/utils/getSubstepValues';
import * as BankAccounts from '@userActions/BankAccounts';
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
Expand All @@ -18,7 +19,6 @@ import DateOfBirth from './substeps/DateOfBirth';
import JobTitle from './substeps/JobTitle';
import Name from './substeps/Name';
import UploadDocuments from './substeps/UploadDocuments';
import getSubstepValues from "@pages/ReimbursementAccount/utils/getSubstepValues";

type SignerInfoProps = {
/** Handles back button press */
Expand Down Expand Up @@ -83,18 +83,21 @@ function SignerInfo({onBackButtonPress, onSubmit}: SignerInfoProps) {
if (currency === CONST.CURRENCY.AUD) {
setCurrentSubStep(SUBSTEP.ENTER_EMAIL);
} else {
BankAccounts.saveCorpayOnboardingDirectorInformation({
signerFullName: onyxValues[INPUT_KEYS.SIGNER_FULL_NAME],
signerDateOfBirth: onyxValues[INPUT_KEYS.SIGNER_DATE_OF_BIRTH],
signerJobTitle: onyxValues[INPUT_KEYS.SIGNER_JOB_TITLE],
signerEmail: onyxValues[INPUT_KEYS.SIGNER_EMAIL],
signerCompleteResidentialAddress: onyxValues[INPUT_KEYS.SIGNER_COMPLETE_RESIDENTIAL_ADDRESS],
secondSignerFullName: onyxValues[INPUT_KEYS.SECOND_SIGNER_FULL_NAME],
secondSignerDateOfBirth: onyxValues[INPUT_KEYS.SECOND_SIGNER_DATE_OF_BIRTH],
secondSignerJobTitle: onyxValues[INPUT_KEYS.SECOND_SIGNER_JOB_TITLE],
secondSignerEmail: onyxValues[INPUT_KEYS.SECOND_SIGNER_EMAIL],
secondSignerCompleteResidentialAddress: onyxValues[INPUT_KEYS.SECOND_SIGNER_COMPLETE_RESIDENTIAL_ADDRESS],
}, bankAccountID);
BankAccounts.saveCorpayOnboardingDirectorInformation(
{
signerFullName: onyxValues[INPUT_KEYS.SIGNER_FULL_NAME],
signerDateOfBirth: onyxValues[INPUT_KEYS.SIGNER_DATE_OF_BIRTH],
signerJobTitle: onyxValues[INPUT_KEYS.SIGNER_JOB_TITLE],
signerEmail: onyxValues[INPUT_KEYS.SIGNER_EMAIL],
signerCompleteResidentialAddress: onyxValues[INPUT_KEYS.SIGNER_COMPLETE_RESIDENTIAL_ADDRESS],
secondSignerFullName: onyxValues[INPUT_KEYS.SECOND_SIGNER_FULL_NAME],
secondSignerDateOfBirth: onyxValues[INPUT_KEYS.SECOND_SIGNER_DATE_OF_BIRTH],
secondSignerJobTitle: onyxValues[INPUT_KEYS.SECOND_SIGNER_JOB_TITLE],
secondSignerEmail: onyxValues[INPUT_KEYS.SECOND_SIGNER_EMAIL],
secondSignerCompleteResidentialAddress: onyxValues[INPUT_KEYS.SECOND_SIGNER_COMPLETE_RESIDENTIAL_ADDRESS],
},
bankAccountID,
);
onSubmit();
}
};
Expand Down

0 comments on commit 41dc57e

Please sign in to comment.