Skip to content

Commit

Permalink
Merge pull request #34201 from dukenv0307/fix/33751
Browse files Browse the repository at this point in the history
Re-order merchant and date field in confirm page
  • Loading branch information
deetergp authored Jan 10, 2024
2 parents 83d9002 + 076f03e commit 2093cd0
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/components/MoneyTemporaryForRefactorRequestConfirmationList.js
Original file line number Diff line number Diff line change
Expand Up @@ -726,26 +726,6 @@ function MoneyTemporaryForRefactorRequestConfirmationList({
)}
{shouldShowAllFields && (
<>
{shouldShowDate && (
<MenuItemWithTopDescription
shouldShowRightIcon={!isReadOnly}
title={iouCreated || format(new Date(), CONST.DATE.FNS_FORMAT_STRING)}
description={translate('common.date')}
style={[styles.moneyRequestMenuItem]}
titleStyle={styles.flex1}
onPress={() => {
if (isEditingSplitBill) {
Navigation.navigate(ROUTES.EDIT_SPLIT_BILL.getRoute(reportID, reportActionID, CONST.EDIT_REQUEST_FIELD.DATE));
return;
}
Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_DATE.getRoute(iouType, transaction.transactionID, reportID, Navigation.getActiveRouteWithoutParams()));
}}
disabled={didConfirm}
interactive={!isReadOnly}
brickRoadIndicator={shouldDisplayFieldError && TransactionUtils.isCreatedMissing(transaction) ? CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR : ''}
error={shouldDisplayFieldError && TransactionUtils.isCreatedMissing(transaction) ? translate('common.error.enterDate') : ''}
/>
)}
{isDistanceRequest && (
<MenuItemWithTopDescription
shouldShowRightIcon={!isReadOnly && isTypeRequest}
Expand Down Expand Up @@ -780,6 +760,26 @@ function MoneyTemporaryForRefactorRequestConfirmationList({
error={merchantError ? translate('common.error.fieldRequired') : ''}
/>
)}
{shouldShowDate && (
<MenuItemWithTopDescription
shouldShowRightIcon={!isReadOnly}
title={iouCreated || format(new Date(), CONST.DATE.FNS_FORMAT_STRING)}
description={translate('common.date')}
style={[styles.moneyRequestMenuItem]}
titleStyle={styles.flex1}
onPress={() => {
if (isEditingSplitBill) {
Navigation.navigate(ROUTES.EDIT_SPLIT_BILL.getRoute(reportID, reportActionID, CONST.EDIT_REQUEST_FIELD.DATE));
return;
}
Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_DATE.getRoute(iouType, transaction.transactionID, reportID, Navigation.getActiveRouteWithoutParams()));
}}
disabled={didConfirm}
interactive={!isReadOnly}
brickRoadIndicator={shouldDisplayFieldError && TransactionUtils.isCreatedMissing(transaction) ? CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR : ''}
error={shouldDisplayFieldError && TransactionUtils.isCreatedMissing(transaction) ? translate('common.error.enterDate') : ''}
/>
)}
{shouldShowCategories && (
<MenuItemWithTopDescription
shouldShowRightIcon={!isReadOnly}
Expand Down

0 comments on commit 2093cd0

Please sign in to comment.