Skip to content

Commit

Permalink
Merge pull request Expensify#40556 from fabioh8010/feature/remove-js-…
Browse files Browse the repository at this point in the history
…leftovers

[No QA][TS migration] Remove almost all JS leftovers
  • Loading branch information
chiragsalian authored Apr 26, 2024
2 parents 035adb8 + be992f1 commit a06cf7e
Show file tree
Hide file tree
Showing 34 changed files with 88 additions and 764 deletions.
71 changes: 46 additions & 25 deletions src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ import dateSubtract from 'date-fns/sub';
import Config from 'react-native-config';
import * as KeyCommand from 'react-native-key-command';
import type {ValueOf} from 'type-fest';
import BankAccount from './libs/models/BankAccount';
import * as Url from './libs/Url';
import SCREENS from './SCREENS';
import type PlaidBankAccount from './types/onyx/PlaidBankAccount';
import type {Unit} from './types/onyx/Policy';

type RateAndUnit = {
Expand Down Expand Up @@ -1377,6 +1379,13 @@ const CONST = {
ERROR: 'ERROR',
EXIT: 'EXIT',
},
DEFAULT_DATA: {
bankName: '',
plaidAccessToken: '',
bankAccounts: [] as PlaidBankAccount[],
isLoading: false,
errors: {},
},
},

ONFIDO: {
Expand Down Expand Up @@ -3948,31 +3957,43 @@ const CONST = {
DEBUG: 'DEBUG',
},
},
REIMBURSEMENT_ACCOUNT_SUBSTEP_INDEX: {
BANK_ACCOUNT: {
ACCOUNT_NUMBERS: 0,
},
PERSONAL_INFO: {
LEGAL_NAME: 0,
DATE_OF_BIRTH: 1,
SSN: 2,
ADDRESS: 3,
},
BUSINESS_INFO: {
BUSINESS_NAME: 0,
TAX_ID_NUMBER: 1,
COMPANY_WEBSITE: 2,
PHONE_NUMBER: 3,
COMPANY_ADDRESS: 4,
COMPANY_TYPE: 5,
INCORPORATION_DATE: 6,
INCORPORATION_STATE: 7,
},
UBO: {
LEGAL_NAME: 0,
DATE_OF_BIRTH: 1,
SSN: 2,
ADDRESS: 3,
REIMBURSEMENT_ACCOUNT: {
DEFAULT_DATA: {
achData: {
state: BankAccount.STATE.SETUP,
},
isLoading: false,
errorFields: {},
errors: {},
maxAttemptsReached: false,
shouldShowResetModal: false,
},
SUBSTEP_INDEX: {
BANK_ACCOUNT: {
ACCOUNT_NUMBERS: 0,
},
PERSONAL_INFO: {
LEGAL_NAME: 0,
DATE_OF_BIRTH: 1,
SSN: 2,
ADDRESS: 3,
},
BUSINESS_INFO: {
BUSINESS_NAME: 0,
TAX_ID_NUMBER: 1,
COMPANY_WEBSITE: 2,
PHONE_NUMBER: 3,
COMPANY_ADDRESS: 4,
COMPANY_TYPE: 5,
INCORPORATION_DATE: 6,
INCORPORATION_STATE: 7,
},
UBO: {
LEGAL_NAME: 0,
DATE_OF_BIRTH: 1,
SSN: 2,
ADDRESS: 3,
},
},
},
CURRENCY_TO_DEFAULT_MILEAGE_RATE: JSON.parse(`{
Expand Down
51 changes: 0 additions & 51 deletions src/components/PDFView/pdfViewPropTypes.js

This file was deleted.

31 changes: 0 additions & 31 deletions src/components/Reactions/EmojiReactionsPropTypes.js

This file was deleted.

139 changes: 0 additions & 139 deletions src/components/TextInput/BaseTextInput/baseTextInputPropTypes.js

This file was deleted.

This file was deleted.

15 changes: 0 additions & 15 deletions src/components/bankAccountPropTypes.js

This file was deleted.

12 changes: 0 additions & 12 deletions src/components/cardPropTypes.js

This file was deleted.

Loading

0 comments on commit a06cf7e

Please sign in to comment.