diff --git a/docs/redirects.csv b/docs/redirects.csv index 1eab00a4933cb..08e5a82fcf4b9 100644 --- a/docs/redirects.csv +++ b/docs/redirects.csv @@ -891,3 +891,5 @@ https://help.expensify.com/articles/expensify-classic/expensify-card/Set-Up-the- https://help.expensify.com/classic,https://help.expensify.com/expensify-classic/hubs/ https://help.expensify.com/articles/new-expensify/expensify-card/Enable-Expensify-Card-notifications,https://help.expensify.com/articles/new-expensify/expensify-card/Expensify-Card-Notifications https://help.expensify.com/articles/expensify-classic/bank-accounts-and-payments/bank-accounts.md/Add-or-remove-a-business-bank-account,https://help.expensify.com/articles/expensify-classic/bank-accounts-and-payments/bank-accounts/Connect-US-Business-Bank-Account +https://help.expensify.com/articles/Unlisted/Compliance-Documentation,https://help.expensify.com/articles/new-expensify/settings/Encryption-and-Data-Security +https://drive.google.com/file/d/1kxttniCMLFah4uPNjhknxs0Zor6tWGWE/view,https://s3-us-west-1.amazonaws.com/concierge-responses-expensify-com/uploads%2F1759782614043-Bridge_Letter_for_SOC_1_and_SOC_2_-_Sept_30_2025.pdf diff --git a/package-lock.json b/package-lock.json index 6c326929d047e..9dca779e52643 100644 --- a/package-lock.json +++ b/package-lock.json @@ -137,7 +137,7 @@ "react-native-url-polyfill": "^2.0.0", "react-native-view-shot": "4.0.0", "react-native-vision-camera": "^4.7.2", - "react-native-web": "0.20.0", + "react-native-web": "0.21.2", "react-native-webview": "13.13.1", "react-plaid-link": "3.3.2", "react-web-config": "^1.0.0", @@ -32796,7 +32796,9 @@ } }, "node_modules/react-native-web": { - "version": "0.20.0", + "version": "0.21.2", + "resolved": "https://registry.npmjs.org/react-native-web/-/react-native-web-0.21.2.tgz", + "integrity": "sha512-SO2t9/17zM4iEnFvlu2DA9jqNbzNhoUP+AItkoCOyFmDMOhUnBBznBDCYN92fGdfAkfQlWzPoez6+zLxFNsZEg==", "license": "MIT", "dependencies": { "@babel/runtime": "^7.18.6", diff --git a/package.json b/package.json index f4b7f56e6aa82..0c9d967dac2ca 100644 --- a/package.json +++ b/package.json @@ -208,7 +208,7 @@ "react-native-url-polyfill": "^2.0.0", "react-native-view-shot": "4.0.0", "react-native-vision-camera": "^4.7.2", - "react-native-web": "0.20.0", + "react-native-web": "0.21.2", "react-native-webview": "13.13.1", "react-plaid-link": "3.3.2", "react-web-config": "^1.0.0", diff --git a/patches/react-native-web/details.md b/patches/react-native-web/details.md index 0afcae736c7d3..8c7df48f3ea27 100644 --- a/patches/react-native-web/details.md +++ b/patches/react-native-web/details.md @@ -1,6 +1,6 @@ # `react-native-web` patches -### [react-native-web+0.20.0+001+initial.patch](react-native-web+0.20.0+001+initial.patch) +### [react-native-web+0.21.2+001+initial.patch](react-native-web+0.21.2+001+initial.patch) - Reason: @@ -12,7 +12,7 @@ - E/App issue: 🛑 - PR introducing patch: https://github.com/Expensify/App/pull/24482 -### [react-native-web+0.20.0+002+fixLastSpacer.patch](react-native-web+0.20.0+002+fixLastSpacer.patch) +### [react-native-web+0.21.2+002+fixLastSpacer.patch](react-native-web+0.21.2+002+fixLastSpacer.patch) - Reason: @@ -24,7 +24,7 @@ - E/App issue: 🛑 - PR introducing patch: https://github.com/Expensify/App/pull/32843 -### [react-native-web+0.20.0+003+image-header-support.patch](react-native-web+0.20.0+003+image-header-support.patch) +### [react-native-web+0.21.2+003+image-header-support.patch](react-native-web+0.21.2+003+image-header-support.patch) - Reason: @@ -36,7 +36,7 @@ - E/App issue: 🛑 - PR introducing patch: https://github.com/Expensify/App/pull/13036 -### [react-native-web+0.20.0+004+fixPointerEventDown.patch](react-native-web+0.20.0+004+fixPointerEventDown.patch) +### [react-native-web+0.21.2+004+fixPointerEventDown.patch](react-native-web+0.21.2+004+fixPointerEventDown.patch) - Reason: @@ -48,7 +48,7 @@ - E/App issue: 🛑 - PR introducing patch: https://github.com/Expensify/App/pull/38494 -### [react-native-web+0.20.0+005+osr-improvement.patch](react-native-web+0.20.0+005+osr-improvement.patch) +### [react-native-web+0.21.2+005+osr-improvement.patch](react-native-web+0.21.2+005+osr-improvement.patch) - Reason: @@ -60,7 +60,7 @@ - E/App issue: 🛑 - PR introducing patch: -### [react-native-web+0.20.0+006+remove-focus-trap-from-modal.patch](react-native-web+0.20.0+006+remove-focus-trap-from-modal.patch) +### [react-native-web+0.21.2+006+remove-focus-trap-from-modal.patch](react-native-web+0.21.2+006+remove-focus-trap-from-modal.patch) - Reason: @@ -72,7 +72,7 @@ - E/App issue: 🛑 - PR introducing patch: https://github.com/Expensify/App/pull/39520 -### [react-native-web+0.20.0+007+fix-scrollable-overflown-text.patch](react-native-web+0.20.0+007+fix-scrollable-overflown-text.patch) +### [react-native-web+0.21.2+007+fix-scrollable-overflown-text.patch](react-native-web+0.21.2+007+fix-scrollable-overflown-text.patch) - Reason: @@ -84,7 +84,7 @@ - E/App issue: 🛑 - PR introducing patch: https://github.com/Expensify/App/pull/47532 -### [react-native-web+0.20.0+008+fix-nested-flatlist-scroll-on-web.patch](react-native-web+0.20.0+008+fix-nested-flatlist-scroll-on-web.patch) +### [react-native-web+0.21.2+008+fix-nested-flatlist-scroll-on-web.patch](react-native-web+0.21.2+008+fix-nested-flatlist-scroll-on-web.patch) - Reason: @@ -96,7 +96,7 @@ - E/App issue: 🛑 - PR introducing patch: https://github.com/Expensify/App/pull/60174 -### [react-native-web+0.20.0+009+fix-two-direction-scroll-on-web.patch](react-native-web+0.20.0+009+fix-two-direction-scroll-on-web.patch) +### [react-native-web+0.21.2+009+fix-two-direction-scroll-on-web.patch](react-native-web+0.21.2+009+fix-two-direction-scroll-on-web.patch) - Reason: @@ -108,7 +108,7 @@ - E/App issue: 🛑 - PR introducing patch: https://github.com/Expensify/App/pull/60340 -### [react-native-web+0.20.0+010+fullstory-support.patch](react-native-web+0.20.0+010+fullstory-support.patch) +### [react-native-web+0.21.2+010+fullstory-support.patch](react-native-web+0.21.2+010+fullstory-support.patch) - Reason: @@ -120,18 +120,7 @@ - E/App issue: As explained above the current solution can't be applied to upstream because it's tailored to Fullstory needs. - PR introducing patch: https://github.com/Expensify/App/pull/67552 -### [react-native-web+0.20.0+011+fix-memory-leak.patch](react-native-web+0.20.0+011+fix-memory-leak.patch) -- Reason: - - ``` - Fixes memory leak on web caused by Animated API used in @react-navigation package - ``` - -- Upstream PR/issue: https://github.com/necolas/react-native-web/pull/2800 -- E/App issue: https://github.com/Expensify/App/issues/65820 -- PR introducing patch: https://github.com/Expensify/App/pull/68834 - -### [react-native-web+0.20.0+012+fix-overscroll-recoil.patch](react-native-web+0.20.0+012+fix-overscroll-recoil.patch) +### [react-native-web+0.21.2+011+fix-overscroll-recoil.patch](react-native-web+0.21.2+011+fix-overscroll-recoil.patch) - Reason: diff --git a/patches/react-native-web/react-native-web+0.20.0+011+fix-memory-leak.patch b/patches/react-native-web/react-native-web+0.20.0+011+fix-memory-leak.patch deleted file mode 100644 index bd749e123c7da..0000000000000 --- a/patches/react-native-web/react-native-web+0.20.0+011+fix-memory-leak.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/node_modules/react-native-web/dist/vendor/react-native/Animated/nodes/AnimatedProps.js b/node_modules/react-native-web/dist/vendor/react-native/Animated/nodes/AnimatedProps.js -index 9ba3336..2d67005 100644 ---- a/node_modules/react-native-web/dist/vendor/react-native/Animated/nodes/AnimatedProps.js -+++ b/node_modules/react-native-web/dist/vendor/react-native/Animated/nodes/AnimatedProps.js -@@ -68,6 +68,7 @@ class AnimatedProps extends AnimatedNode { - if (this.__isNative && this._animatedView) { - this.__disconnectAnimatedView(); - } -+ this._animatedView = null - for (var key in this._props) { - var value = this._props[key]; - if (value instanceof AnimatedNode) { diff --git a/patches/react-native-web/react-native-web+0.20.0+001+initial.patch b/patches/react-native-web/react-native-web+0.21.2+001+initial.patch similarity index 100% rename from patches/react-native-web/react-native-web+0.20.0+001+initial.patch rename to patches/react-native-web/react-native-web+0.21.2+001+initial.patch diff --git a/patches/react-native-web/react-native-web+0.20.0+002+fixLastSpacer.patch b/patches/react-native-web/react-native-web+0.21.2+002+fixLastSpacer.patch similarity index 100% rename from patches/react-native-web/react-native-web+0.20.0+002+fixLastSpacer.patch rename to patches/react-native-web/react-native-web+0.21.2+002+fixLastSpacer.patch diff --git a/patches/react-native-web/react-native-web+0.20.0+003+image-header-support.patch b/patches/react-native-web/react-native-web+0.21.2+003+image-header-support.patch similarity index 100% rename from patches/react-native-web/react-native-web+0.20.0+003+image-header-support.patch rename to patches/react-native-web/react-native-web+0.21.2+003+image-header-support.patch diff --git a/patches/react-native-web/react-native-web+0.20.0+004+fixPointerEventDown.patch b/patches/react-native-web/react-native-web+0.21.2+004+fixPointerEventDown.patch similarity index 100% rename from patches/react-native-web/react-native-web+0.20.0+004+fixPointerEventDown.patch rename to patches/react-native-web/react-native-web+0.21.2+004+fixPointerEventDown.patch diff --git a/patches/react-native-web/react-native-web+0.20.0+005+osr-improvement.patch b/patches/react-native-web/react-native-web+0.21.2+005+osr-improvement.patch similarity index 100% rename from patches/react-native-web/react-native-web+0.20.0+005+osr-improvement.patch rename to patches/react-native-web/react-native-web+0.21.2+005+osr-improvement.patch diff --git a/patches/react-native-web/react-native-web+0.20.0+006+remove-focus-trap-from-modal.patch b/patches/react-native-web/react-native-web+0.21.2+006+remove-focus-trap-from-modal.patch similarity index 100% rename from patches/react-native-web/react-native-web+0.20.0+006+remove-focus-trap-from-modal.patch rename to patches/react-native-web/react-native-web+0.21.2+006+remove-focus-trap-from-modal.patch diff --git a/patches/react-native-web/react-native-web+0.20.0+007+fix-scrollable-overflown-text.patch b/patches/react-native-web/react-native-web+0.21.2+007+fix-scrollable-overflown-text.patch similarity index 100% rename from patches/react-native-web/react-native-web+0.20.0+007+fix-scrollable-overflown-text.patch rename to patches/react-native-web/react-native-web+0.21.2+007+fix-scrollable-overflown-text.patch diff --git a/patches/react-native-web/react-native-web+0.20.0+008+fix-nested-flatlist-scroll-on-web.patch b/patches/react-native-web/react-native-web+0.21.2+008+fix-nested-flatlist-scroll-on-web.patch similarity index 100% rename from patches/react-native-web/react-native-web+0.20.0+008+fix-nested-flatlist-scroll-on-web.patch rename to patches/react-native-web/react-native-web+0.21.2+008+fix-nested-flatlist-scroll-on-web.patch diff --git a/patches/react-native-web/react-native-web+0.20.0+009+fix-two-direction-scroll-on-web.patch b/patches/react-native-web/react-native-web+0.21.2+009+fix-two-direction-scroll-on-web.patch similarity index 100% rename from patches/react-native-web/react-native-web+0.20.0+009+fix-two-direction-scroll-on-web.patch rename to patches/react-native-web/react-native-web+0.21.2+009+fix-two-direction-scroll-on-web.patch diff --git a/patches/react-native-web/react-native-web+0.20.0+010+fullstory-support.patch b/patches/react-native-web/react-native-web+0.21.2+010+fullstory-support.patch similarity index 100% rename from patches/react-native-web/react-native-web+0.20.0+010+fullstory-support.patch rename to patches/react-native-web/react-native-web+0.21.2+010+fullstory-support.patch diff --git a/patches/react-native-web/react-native-web+0.20.0+012+fix-overscroll-recoil.patch b/patches/react-native-web/react-native-web+0.21.2+011+fix-overscroll-recoil.patch similarity index 100% rename from patches/react-native-web/react-native-web+0.20.0+012+fix-overscroll-recoil.patch rename to patches/react-native-web/react-native-web+0.21.2+011+fix-overscroll-recoil.patch diff --git a/src/components/FocusModeNotification.tsx b/src/components/FocusModeNotification.tsx index aa69e7e397e94..8a8387d9ed104 100644 --- a/src/components/FocusModeNotification.tsx +++ b/src/components/FocusModeNotification.tsx @@ -1,14 +1,13 @@ import React from 'react'; +import {View} from 'react-native'; import useEnvironment from '@hooks/useEnvironment'; import useLocalize from '@hooks/useLocalize'; import useStyleUtils from '@hooks/useStyleUtils'; import useThemeStyles from '@hooks/useThemeStyles'; -import {openLink} from '@libs/actions/Link'; import colors from '@styles/theme/colors'; import ConfirmModal from './ConfirmModal'; import {ThreeLeggedLaptopWoman} from './Icon/Illustrations'; -import Text from './Text'; -import TextLinkWithRef from './TextLink'; +import RenderHTML from './RenderHTML'; type FocusModeNotificationProps = { onClose: () => void; @@ -19,7 +18,7 @@ function FocusModeNotification({onClose}: FocusModeNotificationProps) { const StyleUtils = useStyleUtils(); const {environmentURL} = useEnvironment(); const {translate} = useLocalize(); - const href = `${environmentURL}/settings/preferences/priority-mode`; + const priorityModePageUrl = `${environmentURL}/settings/preferences/priority-mode`; return ( - {translate('focusModeUpdateModal.prompt')} - { - onClose(); - openLink(href, environmentURL); - }} - > - {translate('focusModeUpdateModal.settings')} - - . - + + + } isVisible image={ThreeLeggedLaptopWoman} diff --git a/src/components/PriorityModeController.tsx b/src/components/PriorityModeController.tsx index 7625c4c2fc7a1..94c460d9fdfff 100644 --- a/src/components/PriorityModeController.tsx +++ b/src/components/PriorityModeController.tsx @@ -88,6 +88,18 @@ export default function PriorityModeController() { hasSwitched.current = true; }, [accountID, currentRouteName, hasTriedFocusMode, hasTriedFocusModeMetadata, isInFocusMode, isInFocusModeMetadata, isLoadingReportData, validReportCount]); + useEffect(() => { + if (!shouldShowModal) { + return; + } + const isNarrowLayout = getIsNarrowLayout(); + const shouldHideModalOnNavigation = (isNarrowLayout && currentRouteName !== SCREENS.HOME) || (!isNarrowLayout && currentRouteName !== SCREENS.REPORT); + + if (shouldHideModalOnNavigation) { + setShouldShowModal(false); + } + }, [currentRouteName, shouldShowModal]); + return shouldShowModal ? : null; } diff --git a/src/languages/de.ts b/src/languages/de.ts index 1eac745f9fc39..b450f7393021c 100644 --- a/src/languages/de.ts +++ b/src/languages/de.ts @@ -116,6 +116,7 @@ import type { FiltersAmountBetweenParams, FlightLayoverParams, FlightParams, + FocusModeUpdateParams, FormattedMaxLengthParams, GoBackMessageParams, ImportedTagsMessageParams, @@ -2733,8 +2734,8 @@ ${amount} für ${merchant} - ${date}`, }, focusModeUpdateModal: { title: 'Willkommen im #Fokus-Modus!', - prompt: 'Bleiben Sie auf dem Laufenden, indem Sie nur ungelesene Chats oder Chats sehen, die Ihre Aufmerksamkeit erfordern. Keine Sorge, Sie können dies jederzeit in ändern.', - settings: 'Einstellungen', + prompt: ({priorityModePageUrl}: FocusModeUpdateParams) => + `Bleiben Sie auf dem Laufenden, indem Sie nur ungelesene Chats oder Chats sehen, die Ihre Aufmerksamkeit erfordern. Keine Sorge, Sie können dies jederzeit in Einstellungen ändern.`, }, notFound: { chatYouLookingForCannotBeFound: 'Der gesuchte Chat kann nicht gefunden werden.', diff --git a/src/languages/en.ts b/src/languages/en.ts index 9990fb58b3703..5ed64d74a0807 100755 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -105,6 +105,7 @@ import type { FiltersAmountBetweenParams, FlightLayoverParams, FlightParams, + FocusModeUpdateParams, FormattedMaxLengthParams, GoBackMessageParams, ImportedTagsMessageParams, @@ -2717,8 +2718,8 @@ const translations = { }, focusModeUpdateModal: { title: 'Welcome to #focus mode!', - prompt: "Stay on top of things by only seeing unread chats or chats that need your attention. Don't worry, you can change this at any point in ", - settings: 'settings', + prompt: ({priorityModePageUrl}: FocusModeUpdateParams) => + `Stay on top of things by only seeing unread chats or chats that need your attention. Don’t worry, you can change this at any point in settings.`, }, notFound: { chatYouLookingForCannotBeFound: 'The chat you are looking for cannot be found.', diff --git a/src/languages/es.ts b/src/languages/es.ts index d1dfe35d5fe53..b52d98aabe36d 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -103,6 +103,7 @@ import type { FiltersAmountBetweenParams, FlightLayoverParams, FlightParams, + FocusModeUpdateParams, FormattedMaxLengthParams, GoBackMessageParams, ImportedTagsMessageParams, @@ -2694,8 +2695,8 @@ ${amount} para ${merchant} - ${date}`, }, focusModeUpdateModal: { title: '¡Bienvenido al modo #concentración!', - prompt: 'Mantente al tanto de todo viendo sólo los chats no leídos o los que necesitan tu atención. No te preocupes, puedes cambiar el ajuste en cualquier momento desde la ', - settings: 'configuración', + prompt: ({priorityModePageUrl}: FocusModeUpdateParams) => + `Mantente al tanto de todo viendo sólo los chats no leídos o los que necesitan tu atención. No te preocupes, puedes cambiar el ajuste en cualquier momento desde la configuración.`, }, notFound: { chatYouLookingForCannotBeFound: 'El chat que estás buscando no se pudo encontrar.', diff --git a/src/languages/fr.ts b/src/languages/fr.ts index a948ea22bacea..1196fa98a1ffe 100644 --- a/src/languages/fr.ts +++ b/src/languages/fr.ts @@ -116,6 +116,7 @@ import type { FiltersAmountBetweenParams, FlightLayoverParams, FlightParams, + FocusModeUpdateParams, FormattedMaxLengthParams, GoBackMessageParams, ImportedTagsMessageParams, @@ -2729,8 +2730,8 @@ ${amount} pour ${merchant} - ${date}`, }, focusModeUpdateModal: { title: 'Bienvenue en mode #focus !', - prompt: 'Restez au courant des choses en ne voyant que les discussions non lues ou celles qui nécessitent votre attention. Ne vous inquiétez pas, vous pouvez changer cela à tout moment dans', - settings: 'paramètres', + prompt: ({priorityModePageUrl}: FocusModeUpdateParams) => + `Restez au courant des choses en ne voyant que les discussions non lues ou celles qui nécessitent votre attention. Ne vous inquiétez pas, vous pouvez changer cela à tout moment dans paramètres.`, }, notFound: { chatYouLookingForCannotBeFound: 'Le chat que vous recherchez est introuvable.', diff --git a/src/languages/it.ts b/src/languages/it.ts index 6928dd0eba36a..7eb2884e02e77 100644 --- a/src/languages/it.ts +++ b/src/languages/it.ts @@ -116,6 +116,7 @@ import type { FiltersAmountBetweenParams, FlightLayoverParams, FlightParams, + FocusModeUpdateParams, FormattedMaxLengthParams, GoBackMessageParams, ImportedTagsMessageParams, @@ -2742,8 +2743,8 @@ ${amount} per ${merchant} - ${date}`, }, focusModeUpdateModal: { title: 'Benvenuto in modalità #focus!', - prompt: 'Rimani al passo vedendo solo le chat non lette o quelle che richiedono la tua attenzione. Non preoccuparti, puoi cambiare questa impostazione in qualsiasi momento in', - settings: 'impostazioni', + prompt: ({priorityModePageUrl}: FocusModeUpdateParams) => + `Rimani al passo vedendo solo le chat non lette o quelle che richiedono la tua attenzione. Non preoccuparti, puoi cambiare questa impostazione in qualsiasi momento in impostazioni.`, }, notFound: { chatYouLookingForCannotBeFound: 'La chat che stai cercando non può essere trovata.', diff --git a/src/languages/ja.ts b/src/languages/ja.ts index 5811eb091bacf..6f21acbf17327 100644 --- a/src/languages/ja.ts +++ b/src/languages/ja.ts @@ -116,6 +116,7 @@ import type { FiltersAmountBetweenParams, FlightLayoverParams, FlightParams, + FocusModeUpdateParams, FormattedMaxLengthParams, GoBackMessageParams, ImportedTagsMessageParams, @@ -2731,8 +2732,8 @@ ${date} - ${merchant}に${amount}`, }, focusModeUpdateModal: { title: '#focusモードへようこそ!', - prompt: '未読のチャットや注意が必要なチャットのみを表示することで、物事を把握しましょう。心配しないでください、これはいつでも変更できます。', - settings: '設定', + prompt: ({priorityModePageUrl}: FocusModeUpdateParams) => + `未読のチャットや注意が必要なチャットのみを表示することで、物事を把握しましょう。心配しないでください、これはいつでも設定で変更できます。`, }, notFound: { chatYouLookingForCannotBeFound: 'お探しのチャットが見つかりません。', diff --git a/src/languages/nl.ts b/src/languages/nl.ts index cfbc910d6b97e..24b72e78b7148 100644 --- a/src/languages/nl.ts +++ b/src/languages/nl.ts @@ -116,6 +116,7 @@ import type { FiltersAmountBetweenParams, FlightLayoverParams, FlightParams, + FocusModeUpdateParams, FormattedMaxLengthParams, GoBackMessageParams, ImportedTagsMessageParams, @@ -2743,8 +2744,8 @@ ${amount} voor ${merchant} - ${date}`, }, focusModeUpdateModal: { title: 'Welkom in de #focusmodus!', - prompt: 'Blijf op de hoogte door alleen ongelezen chats of chats die uw aandacht nodig hebben te bekijken. Maak je geen zorgen, je kunt dit op elk moment wijzigen in', - settings: 'instellingen', + prompt: ({priorityModePageUrl}: FocusModeUpdateParams) => + `Blijf op de hoogte door alleen ongelezen chats of chats die uw aandacht nodig hebben te bekijken. Maak je geen zorgen, je kunt dit op elk moment wijzigen in instellingen.`, }, notFound: { chatYouLookingForCannotBeFound: 'De chat die je zoekt kan niet worden gevonden.', diff --git a/src/languages/params.ts b/src/languages/params.ts index 25d2753b03539..511aa478608fb 100644 --- a/src/languages/params.ts +++ b/src/languages/params.ts @@ -943,6 +943,10 @@ type MergeAccountIntoParams = { login: string; }; +type FocusModeUpdateParams = { + priorityModePageUrl: string; +}; + export type { SettlementAccountReconciliationParams, ContactMethodsRouteParams, @@ -1253,4 +1257,5 @@ export type { ErrorODIntegrationParams, DisconnectYourBankAccountParams, MergeAccountIntoParams, + FocusModeUpdateParams, }; diff --git a/src/languages/pl.ts b/src/languages/pl.ts index 5c4d8dee466bf..b648dc7044bad 100644 --- a/src/languages/pl.ts +++ b/src/languages/pl.ts @@ -116,6 +116,7 @@ import type { FiltersAmountBetweenParams, FlightLayoverParams, FlightParams, + FocusModeUpdateParams, FormattedMaxLengthParams, GoBackMessageParams, ImportedTagsMessageParams, @@ -2737,8 +2738,8 @@ ${amount} dla ${merchant} - ${date}`, }, focusModeUpdateModal: { title: 'Witamy w trybie #focus!', - prompt: 'Bądź na bieżąco, widząc tylko nieprzeczytane czaty lub czaty, które wymagają Twojej uwagi. Nie martw się, możesz to zmienić w dowolnym momencie w', - settings: 'ustawienia', + prompt: ({priorityModePageUrl}: FocusModeUpdateParams) => + `Bądź na bieżąco, widząc tylko nieprzeczytane czaty lub czaty, które wymagają Twojej uwagi. Nie martw się, możesz to zmienić w dowolnym momencie w ustawienia.`, }, notFound: { chatYouLookingForCannotBeFound: 'Nie można znaleźć czatu, którego szukasz.', diff --git a/src/languages/pt-BR.ts b/src/languages/pt-BR.ts index 041f11b00b51c..6e355462b02f9 100644 --- a/src/languages/pt-BR.ts +++ b/src/languages/pt-BR.ts @@ -116,6 +116,7 @@ import type { FiltersAmountBetweenParams, FlightLayoverParams, FlightParams, + FocusModeUpdateParams, FormattedMaxLengthParams, GoBackMessageParams, ImportedTagsMessageParams, @@ -2735,8 +2736,8 @@ ${amount} para ${merchant} - ${date}`, }, focusModeUpdateModal: { title: 'Bem-vindo ao modo #focus!', - prompt: 'Mantenha-se atualizado vendo apenas os chats não lidos ou que precisam da sua atenção. Não se preocupe, você pode mudar isso a qualquer momento em', - settings: 'configurações', + prompt: ({priorityModePageUrl}: FocusModeUpdateParams) => + `Mantenha-se atualizado vendo apenas os chats não lidos ou que precisam da sua atenção. Não se preocupe, você pode mudar isso a qualquer momento em configurações.`, }, notFound: { chatYouLookingForCannotBeFound: 'O chat que você está procurando não pode ser encontrado.', diff --git a/src/languages/zh-hans.ts b/src/languages/zh-hans.ts index 3b2584bd7894f..5374e62268a4f 100644 --- a/src/languages/zh-hans.ts +++ b/src/languages/zh-hans.ts @@ -116,6 +116,7 @@ import type { FiltersAmountBetweenParams, FlightLayoverParams, FlightParams, + FocusModeUpdateParams, FormattedMaxLengthParams, GoBackMessageParams, ImportedTagsMessageParams, @@ -2705,8 +2706,8 @@ ${merchant}的${amount} - ${date}`, }, focusModeUpdateModal: { title: '欢迎进入#专注模式!', - prompt: '通过仅查看未读聊天或需要您注意的聊天来保持对事物的掌控。别担心,您可以随时在', - settings: '设置', + prompt: ({priorityModePageUrl}: FocusModeUpdateParams) => + `通过仅查看未读聊天或需要您注意的聊天来保持对事物的掌控。别担心,您可以随时在设置中更改。`, }, notFound: { chatYouLookingForCannotBeFound: '您要查找的聊天无法找到。',