Skip to content

Commit

Permalink
move tabSelector.distance to common
Browse files Browse the repository at this point in the history
  • Loading branch information
arosiclair committed Aug 23, 2023
1 parent 3cbd5f2 commit b94d5b4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/ReportActionItem/MoneyRequestPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function MoneyRequestPreview(props) {

const getPreviewHeaderText = () => {
if (isDistanceRequest) {
return props.translate('tabSelector.distance');
return props.translate('common.distance');
}

if (isScanning) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/ReportActionItem/MoneyRequestView.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ function MoneyRequestView({report, parentReport, shouldShowHorizontalRule, polic
</OfflineWithFeedback>
<OfflineWithFeedback pendingAction={lodashGet(transaction, 'pendingFields.merchant') || lodashGet(transaction, 'pendingAction')}>
<MenuItemWithTopDescription
description={isDistanceRequest ? translate('tabSelector.distance') : translate('common.merchant')}
description={isDistanceRequest ? translate('common.distance') : translate('common.merchant')}
title={transactionMerchant}
shouldShowRightIcon={false}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/components/TabSelector/TabSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down
2 changes: 1 addition & 1 deletion src/languages/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ export default {
merchant: 'Merchant',
receipt: 'Receipt',
replace: 'Replace',
distance: 'Distance',
},
anonymousReportFooter: {
logoTagline: 'Join in on the discussion.',
Expand Down Expand Up @@ -369,7 +370,6 @@ export default {
tabSelector: {
manual: 'Manual',
scan: 'Scan',
distance: 'Distance',
},
receipt: {
upload: 'Upload receipt',
Expand Down
2 changes: 1 addition & 1 deletion src/languages/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ export default {
merchant: 'Comerciante',
receipt: 'Recibo',
replace: 'Sustituir',
distance: 'Distancia',
},
anonymousReportFooter: {
logoTagline: 'Únete a la discussion.',
Expand Down Expand Up @@ -368,7 +369,6 @@ export default {
tabSelector: {
manual: 'Manual',
scan: 'Escanear',
distance: 'Distancia',
},
receipt: {
upload: 'Subir recibo',
Expand Down

0 comments on commit b94d5b4

Please sign in to comment.