From 1993ffdb80592b4aecdcab3b9fdc07e5fffae883 Mon Sep 17 00:00:00 2001 From: daledah Date: Thu, 3 Oct 2024 15:07:37 +0700 Subject: [PATCH 01/12] fix: resolve dupe button on one-expense report --- src/components/MoneyReportHeader.tsx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/components/MoneyReportHeader.tsx b/src/components/MoneyReportHeader.tsx index fdf6f8edd825..e76cad4fb3bf 100644 --- a/src/components/MoneyReportHeader.tsx +++ b/src/components/MoneyReportHeader.tsx @@ -89,6 +89,7 @@ function MoneyReportHeader({policy, report: moneyRequestReport, transactionThrea const {reimbursableSpend} = ReportUtils.getMoneyRequestSpendBreakdown(moneyRequestReport); const isOnHold = TransactionUtils.isOnHold(transaction); const isDeletedParentAction = !!requestParentReportAction && ReportActionsUtils.isDeletedAction(requestParentReportAction); + const isDuplicate = TransactionUtils.isDuplicate(transaction?.transactionID ?? ''); // Only the requestor can delete the request, admins can only edit it. const isActionOwner = @@ -294,6 +295,15 @@ function MoneyReportHeader({policy, report: moneyRequestReport, transactionThrea // Shows border if no buttons or banners are showing below the header shouldShowBorderBottom={!isMoreContentShown} > + {isDuplicate && !shouldUseNarrowLayout && ( +