From b94d5b486eb55070bf61f5221c3ee3f578491841 Mon Sep 17 00:00:00 2001 From: Andrew Rosiclair Date: Wed, 23 Aug 2023 12:07:01 -0400 Subject: [PATCH] move tabSelector.distance to common --- src/components/ReportActionItem/MoneyRequestPreview.js | 2 +- src/components/ReportActionItem/MoneyRequestView.js | 2 +- src/components/TabSelector/TabSelector.js | 2 +- src/languages/en.js | 2 +- src/languages/es.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/ReportActionItem/MoneyRequestPreview.js b/src/components/ReportActionItem/MoneyRequestPreview.js index 0112b2cca7f3..0295fd6b7b0c 100644 --- a/src/components/ReportActionItem/MoneyRequestPreview.js +++ b/src/components/ReportActionItem/MoneyRequestPreview.js @@ -176,7 +176,7 @@ function MoneyRequestPreview(props) { const getPreviewHeaderText = () => { if (isDistanceRequest) { - return props.translate('tabSelector.distance'); + return props.translate('common.distance'); } if (isScanning) { diff --git a/src/components/ReportActionItem/MoneyRequestView.js b/src/components/ReportActionItem/MoneyRequestView.js index 0cf843f43d33..b95b3dc60a06 100644 --- a/src/components/ReportActionItem/MoneyRequestView.js +++ b/src/components/ReportActionItem/MoneyRequestView.js @@ -166,7 +166,7 @@ function MoneyRequestView({report, parentReport, shouldShowHorizontalRule, polic diff --git a/src/components/TabSelector/TabSelector.js b/src/components/TabSelector/TabSelector.js index c0faeaf5c6ab..5383253c417b 100644 --- a/src/components/TabSelector/TabSelector.js +++ b/src/components/TabSelector/TabSelector.js @@ -43,7 +43,7 @@ const getTitle = (route, translate) => { case CONST.TAB.SCAN: return translate('tabSelector.scan'); case CONST.TAB.DISTANCE: - return translate('tabSelector.distance'); + return translate('common.distance'); default: return translate('tabSelector.manual'); } diff --git a/src/languages/en.js b/src/languages/en.js index c931d2b07861..df22405fca5b 100755 --- a/src/languages/en.js +++ b/src/languages/en.js @@ -157,6 +157,7 @@ export default { merchant: 'Merchant', receipt: 'Receipt', replace: 'Replace', + distance: 'Distance', }, anonymousReportFooter: { logoTagline: 'Join in on the discussion.', @@ -369,7 +370,6 @@ export default { tabSelector: { manual: 'Manual', scan: 'Scan', - distance: 'Distance', }, receipt: { upload: 'Upload receipt', diff --git a/src/languages/es.js b/src/languages/es.js index 0e6cfb43a0a5..de04a7c9b334 100644 --- a/src/languages/es.js +++ b/src/languages/es.js @@ -156,6 +156,7 @@ export default { merchant: 'Comerciante', receipt: 'Recibo', replace: 'Sustituir', + distance: 'Distancia', }, anonymousReportFooter: { logoTagline: 'Únete a la discussion.', @@ -368,7 +369,6 @@ export default { tabSelector: { manual: 'Manual', scan: 'Escanear', - distance: 'Distancia', }, receipt: { upload: 'Subir recibo',