diff --git a/src/components/ReportActionItem/MoneyRequestView.tsx b/src/components/ReportActionItem/MoneyRequestView.tsx index 6f49e00ab629..f904540f6960 100644 --- a/src/components/ReportActionItem/MoneyRequestView.tsx +++ b/src/components/ReportActionItem/MoneyRequestView.tsx @@ -325,8 +325,8 @@ function MoneyRequestView({ Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_DISTANCE.getRoute(CONST.IOU.ACTION.EDIT, iouType, transaction?.transactionID ?? '-1', report?.reportID ?? '-1')) @@ -352,8 +352,8 @@ function MoneyRequestView({ Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_DISTANCE.getRoute(CONST.IOU.ACTION.EDIT, iouType, transaction?.transactionID ?? '-1', report?.reportID ?? '-1'))} /> @@ -402,7 +402,7 @@ function MoneyRequestView({ description={name ?? translate('common.tag')} title={TransactionUtils.getTagForDisplay(updatedTransaction ?? transaction, index)} interactive={canEdit && !readonly} - shouldShowRightIcon={canEdit} + shouldShowRightIcon={canEdit && !readonly} titleStyle={styles.flex1} onPress={() => Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_TAG.getRoute(CONST.IOU.ACTION.EDIT, iouType, orderWeight, transaction?.transactionID ?? '', report?.reportID ?? '-1')) @@ -497,7 +497,7 @@ function MoneyRequestView({ description={amountDescription} titleStyle={styles.textHeadlineH2} interactive={canEditAmount && !readonly} - shouldShowRightIcon={canEditAmount} + shouldShowRightIcon={canEditAmount && !readonly} onPress={() => Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_AMOUNT.getRoute(CONST.IOU.ACTION.EDIT, iouType, transaction?.transactionID ?? '-1', report?.reportID ?? '-1')) } @@ -511,7 +511,7 @@ function MoneyRequestView({ shouldParseTitle title={updatedTransactionDescription ?? transactionDescription} interactive={canEdit && !readonly} - shouldShowRightIcon={canEdit} + shouldShowRightIcon={canEdit && !readonly} titleStyle={styles.flex1} onPress={() => Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_DESCRIPTION.getRoute(CONST.IOU.ACTION.EDIT, iouType, transaction?.transactionID ?? '-1', report?.reportID ?? '-1')) @@ -530,7 +530,7 @@ function MoneyRequestView({ description={translate('common.merchant')} title={updatedTransaction?.modifiedMerchant ?? merchantTitle} interactive={canEditMerchant && !readonly} - shouldShowRightIcon={canEditMerchant} + shouldShowRightIcon={canEditMerchant && !readonly} titleStyle={styles.flex1} onPress={() => Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_MERCHANT.getRoute(CONST.IOU.ACTION.EDIT, iouType, transaction?.transactionID ?? '-1', report?.reportID ?? '-1')) @@ -547,7 +547,7 @@ function MoneyRequestView({ description={translate('common.date')} title={transactionDate} interactive={canEditDate && !readonly} - shouldShowRightIcon={canEditDate} + shouldShowRightIcon={canEditDate && !readonly} titleStyle={styles.flex1} onPress={() => Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_DATE.getRoute(CONST.IOU.ACTION.EDIT, iouType, transaction?.transactionID ?? '-1', report?.reportID ?? '-1' ?? '-1')) @@ -562,7 +562,7 @@ function MoneyRequestView({ description={translate('common.category')} title={updatedTransaction?.category ?? transactionCategory} interactive={canEdit && !readonly} - shouldShowRightIcon={canEdit} + shouldShowRightIcon={canEdit && !readonly} titleStyle={styles.flex1} onPress={() => Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_CATEGORY.getRoute(CONST.IOU.ACTION.EDIT, iouType, transaction?.transactionID ?? '-1', report?.reportID ?? '-1')) @@ -589,7 +589,7 @@ function MoneyRequestView({ title={taxRateTitle ?? ''} description={taxRatesDescription} interactive={canEditTaxFields && !readonly} - shouldShowRightIcon={canEditTaxFields} + shouldShowRightIcon={canEditTaxFields && !readonly} titleStyle={styles.flex1} onPress={() => Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_TAX_RATE.getRoute(CONST.IOU.ACTION.EDIT, iouType, transaction?.transactionID ?? '-1', report?.reportID ?? '-1')) @@ -605,7 +605,7 @@ function MoneyRequestView({ title={formattedTaxAmount ? formattedTaxAmount.toString() : ''} description={translate('iou.taxAmount')} interactive={canEditTaxFields && !readonly} - shouldShowRightIcon={canEditTaxFields} + shouldShowRightIcon={canEditTaxFields && !readonly} titleStyle={styles.flex1} onPress={() => Navigation.navigate(