From e829a617771047f1a8fa8238cf2144f7a6b7b692 Mon Sep 17 00:00:00 2001 From: Tim Golen Date: Mon, 28 Aug 2023 14:16:18 -0600 Subject: [PATCH 1/3] Allow international address search --- src/components/AddressSearch/index.js | 2 +- src/pages/ReimbursementAccount/AddressForm.js | 2 ++ src/pages/settings/Wallet/AddDebitCardPage.js | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/AddressSearch/index.js b/src/components/AddressSearch/index.js index 262f656fcee1..e761ebeed26b 100644 --- a/src/components/AddressSearch/index.js +++ b/src/components/AddressSearch/index.js @@ -111,7 +111,7 @@ const defaultProps = { value: undefined, defaultValue: undefined, containerStyles: [], - isLimitedToUSA: true, + isLimitedToUSA: false, renamedInputKeys: { street: 'addressStreet', street2: 'addressStreet2', diff --git a/src/pages/ReimbursementAccount/AddressForm.js b/src/pages/ReimbursementAccount/AddressForm.js index d8fbc0290136..e83404df4dca 100644 --- a/src/pages/ReimbursementAccount/AddressForm.js +++ b/src/pages/ReimbursementAccount/AddressForm.js @@ -107,6 +107,8 @@ function AddressForm(props) { hint={props.translate('common.noPO')} renamedInputKeys={props.inputKeys} maxInputLength={CONST.FORM_CHARACTER_LIMIT} + // Limit the address search only to the USA until we fully can support international reimbursement accounts + isLimitedToUSA /> Date: Mon, 28 Aug 2023 14:55:54 -0600 Subject: [PATCH 2/3] Enable international addresses for reimbursement --- src/pages/ReimbursementAccount/AddressForm.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/pages/ReimbursementAccount/AddressForm.js b/src/pages/ReimbursementAccount/AddressForm.js index e83404df4dca..d8fbc0290136 100644 --- a/src/pages/ReimbursementAccount/AddressForm.js +++ b/src/pages/ReimbursementAccount/AddressForm.js @@ -107,8 +107,6 @@ function AddressForm(props) { hint={props.translate('common.noPO')} renamedInputKeys={props.inputKeys} maxInputLength={CONST.FORM_CHARACTER_LIMIT} - // Limit the address search only to the USA until we fully can support international reimbursement accounts - isLimitedToUSA /> Date: Mon, 28 Aug 2023 15:14:16 -0600 Subject: [PATCH 3/3] Remove unnecessary param --- src/pages/settings/Profile/PersonalDetails/AddressPage.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages/settings/Profile/PersonalDetails/AddressPage.js b/src/pages/settings/Profile/PersonalDetails/AddressPage.js index dcce76689251..814d47e003b7 100644 --- a/src/pages/settings/Profile/PersonalDetails/AddressPage.js +++ b/src/pages/settings/Profile/PersonalDetails/AddressPage.js @@ -155,7 +155,6 @@ function AddressPage({privatePersonalDetails, country}) { inputID="addressLine1" label={translate('common.addressLine', {lineNumber: 1})} defaultValue={street1 || ''} - isLimitedToUSA={false} onValueChange={handleAddressChange} renamedInputKeys={{ street: 'addressLine1',