Skip to content

Commit

Permalink
Merge pull request #25593 from BeeMargarida/fix/25561-menuItem-date-c…
Browse files Browse the repository at this point in the history
…lip-ios16.2

#25561: apply flex1 to MenuItems titleStyle in MoneyRequestConfirmationList
  • Loading branch information
mountiny authored Aug 22, 2023
2 parents ddc172d + 2aebf09 commit 2dbfb4b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/MoneyRequestConfirmationList.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ function MoneyRequestConfirmationList(props) {
description={translate('common.description')}
onPress={() => Navigation.navigate(ROUTES.getMoneyRequestDescriptionRoute(props.iouType, props.reportID))}
style={[styles.moneyRequestMenuItem, styles.mb2]}
titleStyle={styles.flex1}
disabled={didConfirm || props.isReadOnly}
/>
{!showAllFields && (
Expand All @@ -377,6 +378,7 @@ function MoneyRequestConfirmationList(props) {
title={props.iouCreated || format(new Date(), CONST.DATE.FNS_FORMAT_STRING)}
description={translate('common.date')}
style={[styles.moneyRequestMenuItem, styles.mb2]}
titleStyle={styles.flex1}
onPress={() => Navigation.navigate(ROUTES.getMoneyRequestCreatedRoute(props.iouType, props.reportID))}
disabled={didConfirm || props.isReadOnly || !isTypeRequest}
/>
Expand All @@ -385,6 +387,7 @@ function MoneyRequestConfirmationList(props) {
title={props.iouMerchant}
description={translate('common.merchant')}
style={[styles.moneyRequestMenuItem, styles.mb2]}
titleStyle={styles.flex1}
onPress={() => Navigation.navigate(ROUTES.getMoneyRequestMerchantRoute(props.iouType, props.reportID))}
disabled={didConfirm || props.isReadOnly || !isTypeRequest}
/>
Expand Down
2 changes: 2 additions & 0 deletions src/components/ReportActionItem/MoneyRequestView.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ function MoneyRequestView({report, parentReport, shouldShowHorizontalRule, polic
title={transactionDescription}
disabled={isSettled || !canEdit}
shouldShowRightIcon={canEdit}
titleStyle={styles.flex1}
onPress={() => Navigation.navigate(ROUTES.getEditRequestRoute(report.reportID, CONST.EDIT_REQUEST_FIELD.DESCRIPTION))}
/>
</OfflineWithFeedback>
Expand All @@ -157,6 +158,7 @@ function MoneyRequestView({report, parentReport, shouldShowHorizontalRule, polic
title={transactionDate}
disabled={isSettled || !canEdit}
shouldShowRightIcon={canEdit}
titleStyle={styles.flex1}
onPress={() => Navigation.navigate(ROUTES.getEditRequestRoute(report.reportID, CONST.EDIT_REQUEST_FIELD.DATE))}
/>
</OfflineWithFeedback>
Expand Down

0 comments on commit 2dbfb4b

Please sign in to comment.