From 4a7d9ab08def817143168c041a8091d7ecbbb049 Mon Sep 17 00:00:00 2001 From: smelaa Date: Mon, 29 Apr 2024 13:23:13 +0200 Subject: [PATCH 1/2] Add subtext to workspace address page --- src/languages/en.ts | 1 + src/languages/es.ts | 1 + src/pages/workspace/WorkspaceProfileAddressPage.tsx | 7 +++++++ 3 files changed, 9 insertions(+) diff --git a/src/languages/en.ts b/src/languages/en.ts index 8b7737f00812..4932e7fadbae 100755 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -2283,6 +2283,7 @@ export default { save: 'Save', genericFailureMessage: 'An error occurred updating the workspace, please try again.', avatarUploadFailureMessage: 'An error occurred uploading the avatar, please try again.', + addressContext: 'A Workspace Address is required to enable Expensify Travel. Please enter an address associated with your business.', }, bankAccount: { continueWithSetup: 'Continue with setup', diff --git a/src/languages/es.ts b/src/languages/es.ts index 82b5505b18f4..99f867f08cc6 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -2311,6 +2311,7 @@ export default { save: 'Guardar', genericFailureMessage: 'Se produjo un error al guardar el espacio de trabajo. Por favor, inténtalo de nuevo.', avatarUploadFailureMessage: 'No se pudo subir el avatar. Por favor, inténtalo de nuevo.', + addressContext: 'Se requiere una dirección de espacio de trabajo para habilitar Expensify Travel. Por favor, ingresa una dirección asociada con tu negocio.', }, bankAccount: { continueWithSetup: 'Continuar con la configuración', diff --git a/src/pages/workspace/WorkspaceProfileAddressPage.tsx b/src/pages/workspace/WorkspaceProfileAddressPage.tsx index 175a3611ef57..44e88d066e49 100644 --- a/src/pages/workspace/WorkspaceProfileAddressPage.tsx +++ b/src/pages/workspace/WorkspaceProfileAddressPage.tsx @@ -1,10 +1,13 @@ import type {StackScreenProps} from '@react-navigation/stack'; import React, {useCallback, useEffect, useMemo, useState} from 'react'; +import {View} from 'react-native'; import AddressForm from '@components/AddressForm'; import type {FormOnyxValues} from '@components/Form/types'; import HeaderWithBackButton from '@components/HeaderWithBackButton'; import ScreenWrapper from '@components/ScreenWrapper'; +import Text from '@components/Text'; import useLocalize from '@hooks/useLocalize'; +import useThemeStyles from '@hooks/useThemeStyles'; import Navigation from '@libs/Navigation/Navigation'; import type {SettingsNavigatorParamList} from '@libs/Navigation/types'; import {updateAddress} from '@userActions/Policy'; @@ -20,6 +23,7 @@ type WorkspaceProfileAddressPagePolicyProps = WithPolicyProps; type WorkspaceProfileAddressPageProps = StackScreenProps & WorkspaceProfileAddressPagePolicyProps; function WorkspaceProfileAddressPage({policy}: WorkspaceProfileAddressPageProps) { + const styles = useThemeStyles(); const {translate} = useLocalize(); const address = useMemo(() => policy?.address, [policy]); const [currentCountry, setCurrentCountry] = useState(address?.country); @@ -91,6 +95,9 @@ function WorkspaceProfileAddressPage({policy}: WorkspaceProfileAddressPageProps) shouldShowBackButton onBackButtonPress={() => Navigation.goBack()} /> + + {translate('workspace.editor.addressContext')} + Date: Mon, 29 Apr 2024 19:01:04 +0200 Subject: [PATCH 2/2] Change Spanish translation --- src/languages/es.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/languages/es.ts b/src/languages/es.ts index 99f867f08cc6..45dea74c9eb2 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -2311,7 +2311,7 @@ export default { save: 'Guardar', genericFailureMessage: 'Se produjo un error al guardar el espacio de trabajo. Por favor, inténtalo de nuevo.', avatarUploadFailureMessage: 'No se pudo subir el avatar. Por favor, inténtalo de nuevo.', - addressContext: 'Se requiere una dirección de espacio de trabajo para habilitar Expensify Travel. Por favor, ingresa una dirección asociada con tu negocio.', + addressContext: 'Se requiere una dirección para habilitar Expensify Travel. Por favor, introduce una dirección asociada con tu negocio.', }, bankAccount: { continueWithSetup: 'Continuar con la configuración',