Skip to content

Commit 7503447

Browse files
committed
Remove almost all JS leftovers
1 parent 9b2c518 commit 7503447

39 files changed

+89
-1109
lines changed

src/CONST.ts

+46-25
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import dateSubtract from 'date-fns/sub';
44
import Config from 'react-native-config';
55
import * as KeyCommand from 'react-native-key-command';
66
import type {ValueOf} from 'type-fest';
7+
import BankAccount from './libs/models/BankAccount';
78
import * as Url from './libs/Url';
89
import SCREENS from './SCREENS';
910

@@ -1343,6 +1344,14 @@ const CONST = {
13431344
ERROR: 'ERROR',
13441345
EXIT: 'EXIT',
13451346
},
1347+
DEFAULT_DATA: {
1348+
bankName: '',
1349+
plaidAccessToken: '',
1350+
bankAccounts: [] as [],
1351+
isLoading: false,
1352+
error: '',
1353+
errors: {},
1354+
},
13461355
},
13471356

13481357
ONFIDO: {
@@ -3625,31 +3634,43 @@ const CONST = {
36253634
DEBUG: 'DEBUG',
36263635
},
36273636
},
3628-
REIMBURSEMENT_ACCOUNT_SUBSTEP_INDEX: {
3629-
BANK_ACCOUNT: {
3630-
ACCOUNT_NUMBERS: 0,
3631-
},
3632-
PERSONAL_INFO: {
3633-
LEGAL_NAME: 0,
3634-
DATE_OF_BIRTH: 1,
3635-
SSN: 2,
3636-
ADDRESS: 3,
3637-
},
3638-
BUSINESS_INFO: {
3639-
BUSINESS_NAME: 0,
3640-
TAX_ID_NUMBER: 1,
3641-
COMPANY_WEBSITE: 2,
3642-
PHONE_NUMBER: 3,
3643-
COMPANY_ADDRESS: 4,
3644-
COMPANY_TYPE: 5,
3645-
INCORPORATION_DATE: 6,
3646-
INCORPORATION_STATE: 7,
3647-
},
3648-
UBO: {
3649-
LEGAL_NAME: 0,
3650-
DATE_OF_BIRTH: 1,
3651-
SSN: 2,
3652-
ADDRESS: 3,
3637+
REIMBURSEMENT_ACCOUNT: {
3638+
DEFAULT_DATA: {
3639+
achData: {
3640+
state: BankAccount.STATE.SETUP,
3641+
},
3642+
isLoading: false,
3643+
errorFields: {},
3644+
errors: {},
3645+
maxAttemptsReached: false,
3646+
shouldShowResetModal: false,
3647+
},
3648+
SUBSTEP_INDEX: {
3649+
BANK_ACCOUNT: {
3650+
ACCOUNT_NUMBERS: 0,
3651+
},
3652+
PERSONAL_INFO: {
3653+
LEGAL_NAME: 0,
3654+
DATE_OF_BIRTH: 1,
3655+
SSN: 2,
3656+
ADDRESS: 3,
3657+
},
3658+
BUSINESS_INFO: {
3659+
BUSINESS_NAME: 0,
3660+
TAX_ID_NUMBER: 1,
3661+
COMPANY_WEBSITE: 2,
3662+
PHONE_NUMBER: 3,
3663+
COMPANY_ADDRESS: 4,
3664+
COMPANY_TYPE: 5,
3665+
INCORPORATION_DATE: 6,
3666+
INCORPORATION_STATE: 7,
3667+
},
3668+
UBO: {
3669+
LEGAL_NAME: 0,
3670+
DATE_OF_BIRTH: 1,
3671+
SSN: 2,
3672+
ADDRESS: 3,
3673+
},
36533674
},
36543675
},
36553676
CURRENCY_TO_DEFAULT_MILEAGE_RATE: JSON.parse(`{

src/components/Modal/modalPropTypes.js

-89
This file was deleted.

src/components/PDFView/pdfViewPropTypes.js

-51
This file was deleted.

src/components/Popover/popoverPropTypes.js

-48
This file was deleted.

src/components/Reactions/EmojiReactionsPropTypes.js

-31
This file was deleted.

0 commit comments

Comments
 (0)