From 9f650bad39bc9b99e6e726df77dd5a842080f301 Mon Sep 17 00:00:00 2001 From: Rajat Parashar Date: Tue, 23 Jul 2024 20:47:57 +0530 Subject: [PATCH] Hide arrows --- .../ReportActionItem/MoneyRequestView.tsx | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/components/ReportActionItem/MoneyRequestView.tsx b/src/components/ReportActionItem/MoneyRequestView.tsx index 4c1ae43a99bc..f904540f6960 100644 --- a/src/components/ReportActionItem/MoneyRequestView.tsx +++ b/src/components/ReportActionItem/MoneyRequestView.tsx @@ -326,7 +326,7 @@ function MoneyRequestView({ description={translate('common.distance')} title={getPendingFieldAction('waypoints') ? translate('iou.fieldPending') : distanceToDisplay} interactive={canEditDistance && !readonly} - shouldShowRightIcon={canEditDistance} + shouldShowRightIcon={canEditDistance && !readonly} titleStyle={styles.flex1} onPress={() => Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_DISTANCE.getRoute(CONST.IOU.ACTION.EDIT, iouType, transaction?.transactionID ?? '-1', report?.reportID ?? '-1')) @@ -353,7 +353,7 @@ function MoneyRequestView({ description={translate('common.distance')} title={transactionMerchant} interactive={canEditDistance && !readonly} - shouldShowRightIcon={canEditDistance} + shouldShowRightIcon={canEditDistance && !readonly} titleStyle={styles.flex1} onPress={() => 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(