Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor/36648 wallet enablement flow personal info #40357

Merged
Show file tree
Hide file tree
Changes from 37 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
7c16aa4
refactor: personal info wip
koko57 Apr 3, 2024
6331ddd
Merge branch 'main' into refactor/36648-wallet-enablement-flow-person…
koko57 Apr 5, 2024
2fb2ce4
Merge branch 'main' into refactor/36648-wallet-enablement-flow-person…
koko57 Apr 9, 2024
8876374
fix: wrap the page for displaying offline indicator correctly, do not…
koko57 Apr 9, 2024
07559bd
Merge branch 'main' into refactor/36648-wallet-enablement-flow-person…
koko57 Apr 10, 2024
e8c9058
Merge branch 'main' into refactor/36648-wallet-enablement-flow-person…
koko57 Apr 10, 2024
fc2e134
refactor: rename AddressForm to AddressFormFields
koko57 Apr 11, 2024
03111d4
refactor: remove unused file
koko57 Apr 11, 2024
85e77ec
Merge branch 'main' into refactor/36648-wallet-enablement-flow-person…
koko57 Apr 12, 2024
f19d447
refactor: wip
koko57 Apr 12, 2024
647f538
Merge branch 'main' into refactor/36648-wallet-enablement-flow-person…
koko57 Apr 15, 2024
3e7f27d
Merge branch 'main' into refactor/36648-wallet-enablement-flow-person…
koko57 Apr 16, 2024
1e0e3af
feat: add phone number page
koko57 Apr 16, 2024
ffc26f9
feat: add validation for the field, editing phone number
koko57 Apr 16, 2024
9b665e8
Merge branch 'main' into refactor/36648-wallet-enablement-flow-person…
koko57 Apr 17, 2024
b8e9d43
feat: add proper copies
koko57 Apr 17, 2024
c135183
refactor: make useStepSubmit generic
koko57 Apr 17, 2024
4718b80
refactor: finishing touches
koko57 Apr 17, 2024
c888b6f
fix: change step order
koko57 Apr 17, 2024
744c276
fix: rename components
koko57 Apr 17, 2024
042138b
fix: linter
koko57 Apr 17, 2024
5303251
Merge branch 'main' into refactor/36648-wallet-enablement-flow-person…
koko57 Apr 17, 2024
10bb996
fix: minor fix
koko57 Apr 17, 2024
4a050bd
Merge branch 'main' into refactor/36648-wallet-enablement-flow-person…
koko57 Apr 18, 2024
bffc4b6
fix: add issue link
koko57 Apr 18, 2024
ec9ed98
fix: minor fix
koko57 Apr 18, 2024
d6f65ef
fix: minor fix
koko57 Apr 18, 2024
16b2067
refactor: replace withOnyx with useOnyx
koko57 Apr 18, 2024
c001154
fix: minor fix
koko57 Apr 18, 2024
3866998
fix: minor fix
koko57 Apr 18, 2024
0711f4c
Merge branch 'main' into refactor/36648-wallet-enablement-flow-person…
koko57 Apr 24, 2024
d88c4e7
fix: jumping inputs
koko57 Apr 24, 2024
5ea49d2
fix: remove wrappers, change the labels
koko57 Apr 24, 2024
57f1a7b
fix: address step title
koko57 Apr 24, 2024
04c20eb
fix: apply requested changes
koko57 Apr 25, 2024
879287c
fix: minor fix
koko57 Apr 25, 2024
67a43b1
fix: remove unnecessary style
koko57 Apr 25, 2024
e98ef14
Merge branch 'main' into refactor/36648-wallet-enablement-flow-person…
koko57 Apr 29, 2024
cb13e9c
fix: comment change
koko57 Apr 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1346,8 +1346,9 @@ const CONST = {
PERSONAL_INFO: {
LEGAL_NAME: 0,
DATE_OF_BIRTH: 1,
SSN: 2,
ADDRESS: 3,
ADDRESS: 2,
PHONE_NUMBER: 3,
SSN: 4,
},
},
TIER_NAME: {
Expand Down
1 change: 1 addition & 0 deletions src/ROUTES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ const ROUTES = {
SETTINGS_ADD_BANK_ACCOUNT: 'settings/wallet/add-bank-account',
SETTINGS_ADD_BANK_ACCOUNT_REFACTOR: 'settings/wallet/add-bank-account-refactor',
SETTINGS_ENABLE_PAYMENTS: 'settings/wallet/enable-payments',
SETTINGS_ENABLE_PAYMENTS_REFACTOR: 'settings/wallet/enable-payments-refactor',
SETTINGS_WALLET_CARD_DIGITAL_DETAILS_UPDATE_ADDRESS: {
route: 'settings/wallet/card/:domain/digital-details/update-address',
getRoute: (domain: string) => `settings/wallet/card/${domain}/digital-details/update-address` as const,
Expand Down
1 change: 1 addition & 0 deletions src/SCREENS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ const SCREENS = {
TRANSFER_BALANCE: 'Settings_Wallet_Transfer_Balance',
CHOOSE_TRANSFER_ACCOUNT: 'Settings_Wallet_Choose_Transfer_Account',
ENABLE_PAYMENTS: 'Settings_Wallet_EnablePayments',
ENABLE_PAYMENTS_REFACTOR: 'Settings_Wallet_EnablePayments_Refactor',
CARD_ACTIVATE: 'Settings_Wallet_Card_Activate',
REPORT_VIRTUAL_CARD_FRAUD: 'Settings_Wallet_ReportVirtualCardFraud',
CARDS_DIGITAL_DETAILS_UPDATE_ADDRESS: 'Settings_Wallet_Cards_Digital_Details_Update_Address',
Expand Down
37 changes: 9 additions & 28 deletions src/hooks/useReimbursementAccountStepFormSubmit.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import {useCallback} from 'react';
import type {FormOnyxKeys, FormOnyxValues} from '@components/Form/types';
import * as FormActions from '@userActions/FormActions';
import type {FormOnyxKeys} from '@components/Form/types';
import type {OnyxFormKey} from '@src/ONYXKEYS';
import ONYXKEYS from '@src/ONYXKEYS';
import useStepFormSubmit from './useStepFormSubmit';
import type {SubStepProps} from './useSubStep/types';

type UseReimbursementAccountStepFormSubmitParams = Pick<SubStepProps, 'onNext'> & {
Expand All @@ -14,33 +13,15 @@ type UseReimbursementAccountStepFormSubmitParams = Pick<SubStepProps, 'onNext'>
/**
* Hook for handling submit method in ReimbursementAccount substeps.
* When user is in editing mode we should save values only when user confirm that
* @param formId - ID for particular form
* @param onNext - callback
* @param fieldIds - field IDs for particular step
* @param shouldSaveDraft - if we should save draft values
*/
export default function useReimbursementAccountStepFormSubmit({
formId = ONYXKEYS.FORMS.REIMBURSEMENT_ACCOUNT_FORM,
onNext,
fieldIds,
shouldSaveDraft,
}: UseReimbursementAccountStepFormSubmitParams) {
return useCallback(
(values: FormOnyxValues<typeof ONYXKEYS.FORMS.REIMBURSEMENT_ACCOUNT_FORM>) => {
if (shouldSaveDraft) {
const stepValues = fieldIds.reduce(
(acc, key) => ({
...acc,
[key]: values[key],
}),
{},
);

FormActions.setDraftValues(formId, stepValues);
}

onNext();
},
[onNext, formId, fieldIds, shouldSaveDraft],
);
export default function useReimbursementAccountStepFormSubmit({onNext, fieldIds, shouldSaveDraft}: UseReimbursementAccountStepFormSubmitParams) {
return useStepFormSubmit<typeof ONYXKEYS.FORMS.REIMBURSEMENT_ACCOUNT_FORM>({
formId: ONYXKEYS.FORMS.REIMBURSEMENT_ACCOUNT_FORM,
onNext,
fieldIds,
shouldSaveDraft,
});
}
40 changes: 40 additions & 0 deletions src/hooks/useStepFormSubmit.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import {useCallback} from 'react';
import type {FormOnyxKeys, FormOnyxValues} from '@components/Form/types';
import * as FormActions from '@userActions/FormActions';
import type {OnyxFormKey, OnyxFormValuesMapping} from '@src/ONYXKEYS';
import type {SubStepProps} from './useSubStep/types';

type UseStepFormSubmitParams<T extends keyof OnyxFormValuesMapping> = Pick<SubStepProps, 'onNext'> & {
formId: OnyxFormKey;
fieldIds: Array<FormOnyxKeys<T>>;
shouldSaveDraft: boolean;
};

/**
* Hook for handling submit method in substeps.
* When user is in editing mode we should save values only when user confirm that
mountiny marked this conversation as resolved.
Show resolved Hide resolved
* @param formId - ID for particular form
* @param onNext - callback
* @param fieldIds - field IDs for particular step
* @param shouldSaveDraft - if we should save draft values
*/
export default function useStepFormSubmit<T extends keyof OnyxFormValuesMapping>({formId, onNext, fieldIds, shouldSaveDraft}: UseStepFormSubmitParams<T>) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am wondering why this extra new hook is required, bcoz to me it seems only adding a nested level from useReimbursementAccountStepFormSubmit

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But it's used also for useWalletAdditionalDetailsStepFormSubmit. I could just have renamed useReimbursementAccountStepFormSubmit to useStepFromSubmit, but everytime for every form I would need to remember to pass the formId and instantiate it with a proper type. Here each form can have it's own hook properly typed and with proper formId passed and I just import the proper hook and I don't need to remember of types or Id.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got your point, here I would suggest to remove useReimbursementAccountStepFormSubmit and useWalletAdditionalDetailsStepFormSubmit by using the generic hook useStepFormSubmit which you have created. I think passing formId from the substep components should be fine.

For eg. I have tried this in FullNameStep and it works fine.

const handleSubmit = useStepFormSubmit<typeof ONYXKEYS.FORMS.WALLET_ADDITIONAL_DETAILS>({
 formId: ONYXKEYS.FORMS.WALLET_ADDITIONAL_DETAILS,
 onNext,
 fieldIds: STEP_FIELDS,
 shouldSaveDraft: isEditing,
});

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Pujan92 I also didn't want to touch the ReimbursementAccount files in this PR. There are also some other changes in both flows that could be refactored and reused but I've planned to do that after this flow is complete and working.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I understand your concerns. Maybe at the time of refactoring, we can bring this point over there.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Pujan92 yeah, of course, I will keep that in mind! thanks!

return useCallback(
(values: FormOnyxValues<T>) => {
if (shouldSaveDraft) {
const stepValues = fieldIds.reduce(
(acc, key) => ({
...acc,
[key]: values[key],
}),
{},
);

FormActions.setDraftValues(formId, stepValues);
}

onNext();
},
[onNext, formId, fieldIds, shouldSaveDraft],
);
}
11 changes: 10 additions & 1 deletion src/hooks/useSubStep/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,14 @@ export default function useSubStep<TProps extends SubStepProps>({bodyContent, on
setScreenIndex(bodyContent.length - 1);
}, [bodyContent]);

return {componentToRender: bodyContent[screenIndex], isEditing: isEditing.current, screenIndex, prevScreen, nextScreen, moveTo, resetScreenIndex, goToTheLastStep};
return {
componentToRender: bodyContent[screenIndex],
isEditing: isEditing.current,
screenIndex,
prevScreen,
nextScreen,
moveTo,
resetScreenIndex,
goToTheLastStep,
};
}
27 changes: 27 additions & 0 deletions src/hooks/useWalletAdditionalDetailsStepFormSubmit.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import type {FormOnyxKeys} from '@components/Form/types';
import type {OnyxFormKey} from '@src/ONYXKEYS';
import ONYXKEYS from '@src/ONYXKEYS';
import useStepFormSubmit from './useStepFormSubmit';
import type {SubStepProps} from './useSubStep/types';

type UseWalletAdditionalDetailsStepFormSubmitParams = Pick<SubStepProps, 'onNext'> & {
formId?: OnyxFormKey;
fieldIds: Array<FormOnyxKeys<typeof ONYXKEYS.FORMS.WALLET_ADDITIONAL_DETAILS>>;
shouldSaveDraft: boolean;
};

/**
* Hook for handling submit method in WalletAdditionalDetails substeps.
* When user is in editing mode we should save values only when user confirm that
mountiny marked this conversation as resolved.
Show resolved Hide resolved
* @param onNext - callback
* @param fieldIds - field IDs for particular step
* @param shouldSaveDraft - if we should save draft values
*/
export default function useWalletAdditionalDetailsStepFormSubmit({onNext, fieldIds, shouldSaveDraft}: UseWalletAdditionalDetailsStepFormSubmitParams) {
return useStepFormSubmit<typeof ONYXKEYS.FORMS.WALLET_ADDITIONAL_DETAILS>({
formId: ONYXKEYS.FORMS.WALLET_ADDITIONAL_DETAILS,
onNext,
fieldIds,
shouldSaveDraft,
});
}
8 changes: 8 additions & 0 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1687,6 +1687,14 @@ export default {
address: 'Address',
letsDoubleCheck: "Let's double check that everything looks right.",
byAddingThisBankAccount: 'By adding this bank account, you confirm that you have read, understand and accept',
whatsYourLegalName: 'What’s your legal name?',
whatsYourDOB: 'What’s your date of birth?',
whatsYourAddress: 'What’s your address?',
noPOBoxesPlease: 'No PO boxes or mail-drop addresses, please.',
whatsYourSSN: 'What are the last four digits of your Social Security Number?',
noPersonalChecks: 'Don’t worry, no personal credit checks here!',
whatsYourPhoneNumber: 'What’s your phone number?',
weNeedThisToVerify: 'We need this to verify your wallet.',
},
businessInfoStep: {
businessInfo: 'Business info',
Expand Down
8 changes: 8 additions & 0 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1709,6 +1709,14 @@ export default {
address: 'Dirección',
letsDoubleCheck: 'Revisemos que todo esté bien',
byAddingThisBankAccount: 'Añadiendo esta cuenta bancaria, confirmas que has leído, entendido y aceptado',
whatsYourLegalName: '¿Cuál es tu nombre legal?',
whatsYourDOB: '¿Cuál es tu fecha de nacimiento?',
whatsYourAddress: '¿Cuál es tu dirección?',
noPOBoxesPlease: 'Nada de apartados de correos ni direcciones de envío, por favor.',
whatsYourSSN: '¿Cuáles son los últimos 4 dígitos de tu número de la seguridad social?',
noPersonalChecks: 'No te preocupes, no hacemos verificaciones de crédito personales.',
whatsYourPhoneNumber: '¿Cuál es tu número de teléfono?',
weNeedThisToVerify: 'Necesitamos esto para verificar tu billetera.',
},
businessInfoStep: {
businessInfo: 'Información de la empresa',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ const SettingsModalStackNavigator = createModalStackNavigator<SettingsNavigatorP
[SCREENS.SETTINGS.WALLET.TRANSFER_BALANCE]: () => require('../../../../pages/settings/Wallet/TransferBalancePage').default as React.ComponentType,
[SCREENS.SETTINGS.WALLET.CHOOSE_TRANSFER_ACCOUNT]: () => require('../../../../pages/settings/Wallet/ChooseTransferAccountPage').default as React.ComponentType,
[SCREENS.SETTINGS.WALLET.ENABLE_PAYMENTS]: () => require('../../../../pages/EnablePayments/EnablePaymentsPage').default as React.ComponentType,
[SCREENS.SETTINGS.WALLET.ENABLE_PAYMENTS_REFACTOR]: () => require('../../../../pages/EnablePayments/PersonalInfo/PersonalInfo').default as React.ComponentType,
[SCREENS.SETTINGS.ADD_DEBIT_CARD]: () => require('../../../../pages/settings/Wallet/AddDebitCardPage').default as React.ComponentType,
[SCREENS.SETTINGS.ADD_BANK_ACCOUNT]: () => require('../../../../pages/AddPersonalBankAccountPage').default as React.ComponentType,
[SCREENS.SETTINGS.ADD_BANK_ACCOUNT_REFACTOR]: () => require('../../../../pages/EnablePayments/AddBankAccount/AddBankAccount').default as React.ComponentType,
Expand Down
4 changes: 4 additions & 0 deletions src/libs/Navigation/linkingConfig/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ const config: LinkingOptions<RootStackParamList>['config'] = {
path: ROUTES.SETTINGS_ENABLE_PAYMENTS,
exact: true,
},
[SCREENS.SETTINGS.WALLET.ENABLE_PAYMENTS_REFACTOR]: {
path: ROUTES.SETTINGS_ENABLE_PAYMENTS_REFACTOR,
exact: true,
},
[SCREENS.SETTINGS.WALLET.TRANSFER_BALANCE]: {
path: ROUTES.SETTINGS_WALLET_TRANSFER_BALANCE,
exact: true,
Expand Down
5 changes: 5 additions & 0 deletions src/libs/actions/Wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,10 @@ function requestPhysicalExpensifyCard(cardID: number, authToken: string, private
API.write(WRITE_COMMANDS.REQUEST_PHYSICAL_EXPENSIFY_CARD, requestParams, {optimisticData});
}

function resetWalletAdditionalDetailsDraft() {
Onyx.set(ONYXKEYS.FORMS.WALLET_ADDITIONAL_DETAILS_DRAFT, null);
}

export {
openOnfidoFlow,
openInitialSettingsPage,
Expand All @@ -309,4 +313,5 @@ export {
acceptWalletTerms,
setKYCWallSource,
requestPhysicalExpensifyCard,
resetWalletAdditionalDetailsDraft,
};
37 changes: 20 additions & 17 deletions src/pages/EnablePayments/AddBankAccount/AddBankAccount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ function AddBankAccount({personalBankAccount, plaidData, personalBankAccountDraf

const exitFlow = (shouldContinue = false) => {
const exitReportID = personalBankAccount?.exitReportID;
// TODO: https://github.com/Expensify/App/issues/36648 This should be updated to the correct route once the refactor is complete
const onSuccessFallbackRoute = personalBankAccount?.onSuccessFallbackRoute ?? '';

if (exitReportID) {
Expand All @@ -64,7 +65,7 @@ function AddBankAccount({personalBankAccount, plaidData, personalBankAccountDraf
PaymentMethods.continueSetup(onSuccessFallbackRoute);
return;
}
Navigation.goBack(ROUTES.SETTINGS_WALLET);
Navigation.goBack();
};

const handleBackButtonPress = () => {
Expand Down Expand Up @@ -92,23 +93,25 @@ function AddBankAccount({personalBankAccount, plaidData, personalBankAccountDraf
onBackButtonPress={handleBackButtonPress}
title={translate('bankAccount.addBankAccount')}
/>
{isSetupTypeChosen ? (
<>
<View style={[styles.ph5, styles.mb5, styles.mt3, {height: CONST.BANK_ACCOUNT.STEPS_HEADER_HEIGHT}]}>
<InteractiveStepSubHeader
startStepIndex={0}
stepNames={CONST.WALLET.STEP_NAMES}
<View style={styles.flex1}>
{isSetupTypeChosen ? (
<>
<View style={[styles.ph5, styles.mb5, styles.mt3, {height: CONST.BANK_ACCOUNT.STEPS_HEADER_HEIGHT}]}>
<InteractiveStepSubHeader
startStepIndex={0}
stepNames={CONST.WALLET.STEP_NAMES}
/>
</View>
<SubStep
isEditing={isEditing}
onNext={nextScreen}
onMove={moveTo}
/>
</View>
<SubStep
isEditing={isEditing}
onNext={nextScreen}
onMove={moveTo}
/>
</>
) : (
<SetupMethod />
)}
</>
) : (
<SetupMethod />
)}
</View>
</ScreenWrapper>
);
}
Expand Down
50 changes: 26 additions & 24 deletions src/pages/EnablePayments/AddBankAccount/SetupMethod.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,31 +35,33 @@ function SetupMethod({isPlaidDisabled, user}: SetupMethodProps) {
const {translate} = useLocalize();

return (
<Section
icon={Illustrations.MoneyWings}
title={translate('walletPage.addYourBankAccount')}
titleStyles={[styles.textHeadlineLineHeightXXL]}
>
<View style={[styles.mv3]}>
<Text>{translate('walletPage.addBankAccountBody')}</Text>
</View>
{!!plaidDesktopMessage && (
<View style={[styles.mv3, styles.flexRow, styles.justifyContentBetween]}>
<TextLink href={bankAccountRoute}>{translate(plaidDesktopMessage)}</TextLink>
<View>
<Section
icon={Illustrations.MoneyWings}
title={translate('walletPage.addYourBankAccount')}
titleStyles={[styles.textHeadlineLineHeightXXL]}
>
<View style={[styles.mv3]}>
<Text>{translate('walletPage.addBankAccountBody')}</Text>
</View>
)}
<Button
icon={Expensicons.Bank}
text={translate('bankAccount.addBankAccount')}
onPress={() => BankAccounts.openPersonalBankAccountSetupViewRefactor()}
isDisabled={isPlaidDisabled ?? !user?.validated}
style={[styles.mt4, styles.mb2]}
iconStyles={styles.buttonCTAIcon}
shouldShowRightIcon
success
large
/>
</Section>
{!!plaidDesktopMessage && (
<View style={[styles.mv3, styles.flexRow, styles.justifyContentBetween]}>
<TextLink href={bankAccountRoute}>{translate(plaidDesktopMessage)}</TextLink>
</View>
)}
<Button
icon={Expensicons.Bank}
text={translate('bankAccount.addBankAccount')}
onPress={() => BankAccounts.openPersonalBankAccountSetupViewRefactor()}
mountiny marked this conversation as resolved.
Show resolved Hide resolved
isDisabled={isPlaidDisabled ?? !user?.validated}
style={[styles.mt4, styles.mb2]}
iconStyles={styles.buttonCTAIcon}
shouldShowRightIcon
success
large
/>
</Section>
</View>
);
}

Expand Down
4 changes: 2 additions & 2 deletions src/pages/EnablePayments/AdditionalDetailsStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import useThemeStyles from '@hooks/useThemeStyles';
import * as PersonalDetailsUtils from '@libs/PersonalDetailsUtils';
import {parsePhoneNumber} from '@libs/PhoneNumber';
import * as ValidationUtils from '@libs/ValidationUtils';
import AddressForm from '@pages/ReimbursementAccount/AddressForm';
import AddressFormFields from '@pages/ReimbursementAccount/AddressFormFields';
import * as Wallet from '@userActions/Wallet';
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
Expand Down Expand Up @@ -184,7 +184,7 @@ function AdditionalDetailsStep({walletAdditionalDetails = DEFAULT_WALLET_ADDITIO
defaultValue={PersonalDetailsUtils.extractFirstAndLastNameFromAvailableDetails(currentUserPersonalDetails).lastName}
shouldSaveDraft
/>
<AddressForm
<AddressFormFields
inputKeys={{
street: 'addressStreet',
city: 'addressCity',
Expand Down
Loading
Loading