@@ -4,8 +4,8 @@ import AddressSearch from '@components/AddressSearch';
44import FormProvider from '@components/Form/FormProvider' ;
55import InputWrapper from '@components/Form/InputWrapper' ;
66import type { FormInputErrors , FormOnyxValues } from '@components/Form/types' ;
7+ import PushRowWithModal from '@components/PushRowWithModal' ;
78import TextInput from '@components/TextInput' ;
8- import TextPicker from '@components/TextPicker' ;
99import ValuePicker from '@components/ValuePicker' ;
1010import useInternationalBankAccountFormSubmit from '@hooks/useInternationalBankAccountFormSubmit' ;
1111import useLocalize from '@hooks/useLocalize' ;
@@ -14,7 +14,6 @@ import type CustomSubStepProps from '@pages/settings/Wallet/InternationalDeposit
1414import { getValidationErrors } from '@pages/settings/Wallet/InternationalDepositAccount/utils' ;
1515import Text from '@src/components/Text' ;
1616import CONST from '@src/CONST' ;
17- import type { TranslationPaths } from '@src/languages/types' ;
1817import ONYXKEYS from '@src/ONYXKEYS' ;
1918import type { CorpayFormField } from '@src/types/onyx' ;
2019import { isEmptyObject } from '@src/types/utils/EmptyObject' ;
@@ -30,7 +29,7 @@ function getInputComponent(field: CorpayFormField) {
3029 return AddressSearch ;
3130 }
3231 if ( field . id === CONST . CORPAY_FIELDS . ACCOUNT_HOLDER_COUNTRY_KEY ) {
33- return TextPicker ;
32+ return PushRowWithModal ;
3433 }
3534 return TextInput ;
3635}
@@ -104,9 +103,9 @@ function AccountHolderInformation({isEditing, onNext, formValues, fieldsMap}: Cu
104103 label = { field . label + ( field . isRequired ? '' : ` (${ translate ( 'common.optional' ) } )` ) }
105104 description = { field . id === CONST . CORPAY_FIELDS . ACCOUNT_HOLDER_COUNTRY_KEY ? field . label : undefined }
106105 items = { getItems ( field ) }
107- disabled = { field . id === CONST . CORPAY_FIELDS . ACCOUNT_HOLDER_COUNTRY_KEY }
108- interactive = { field . id === CONST . CORPAY_FIELDS . ACCOUNT_HOLDER_COUNTRY_KEY ? false : undefined }
109- value = { field . id === CONST . CORPAY_FIELDS . ACCOUNT_HOLDER_COUNTRY_KEY ? translate ( `allCountries. ${ formValues . bankCountry } ` as TranslationPaths ) : undefined }
106+ shouldAllowChange = { field . id === CONST . CORPAY_FIELDS . ACCOUNT_HOLDER_COUNTRY_KEY ? false : undefined }
107+ optionsList = { field . id === CONST . CORPAY_FIELDS . ACCOUNT_HOLDER_COUNTRY_KEY ? CONST . ALL_COUNTRIES : undefined }
108+ value = { field . id === CONST . CORPAY_FIELDS . ACCOUNT_HOLDER_COUNTRY_KEY ? formValues . bankCountry : undefined }
110109 shouldSaveDraft = { ! isEditing }
111110 renamedInputKeys = { {
112111 street : isEmptyObject ( fieldsMap [ CONST . CORPAY_FIELDS . STEPS_NAME . ACCOUNT_HOLDER_INFORMATION ] ?. accountHolderAddress1 ) ? '' : 'accountHolderAddress1' ,
0 commit comments