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' ;
3
3
import { useOnyx } from 'react-native-onyx' ;
4
4
import InteractiveStepWrapper from '@components/InteractiveStepWrapper' ;
5
5
import YesNoStep from '@components/SubStepForms/YesNoStep' ;
6
6
import useLocalize from '@hooks/useLocalize' ;
7
7
import useSubStep from '@hooks/useSubStep' ;
8
8
import type { SubStepProps } from '@hooks/useSubStep/types' ;
9
9
import Navigation from '@navigation/Navigation' ;
10
+ import getSubstepValues from '@pages/ReimbursementAccount/utils/getSubstepValues' ;
10
11
import * as BankAccounts from '@userActions/BankAccounts' ;
11
12
import CONST from '@src/CONST' ;
12
13
import ONYXKEYS from '@src/ONYXKEYS' ;
@@ -18,7 +19,6 @@ import DateOfBirth from './substeps/DateOfBirth';
18
19
import JobTitle from './substeps/JobTitle' ;
19
20
import Name from './substeps/Name' ;
20
21
import UploadDocuments from './substeps/UploadDocuments' ;
21
- import getSubstepValues from "@pages/ReimbursementAccount/utils/getSubstepValues" ;
22
22
23
23
type SignerInfoProps = {
24
24
/** Handles back button press */
@@ -83,18 +83,21 @@ function SignerInfo({onBackButtonPress, onSubmit}: SignerInfoProps) {
83
83
if ( currency === CONST . CURRENCY . AUD ) {
84
84
setCurrentSubStep ( SUBSTEP . ENTER_EMAIL ) ;
85
85
} 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
+ ) ;
98
101
onSubmit ( ) ;
99
102
}
100
103
} ;
0 commit comments