From 28cff71e64e880935f0241583dd96c02929536c7 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Sat, 4 May 2024 22:07:47 +0800 Subject: [PATCH 1/2] enable navigate to detail page for transaction thread --- src/components/MoneyRequestHeader.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/MoneyRequestHeader.tsx b/src/components/MoneyRequestHeader.tsx index 2f660c9d8fde..1d47b3738a71 100644 --- a/src/components/MoneyRequestHeader.tsx +++ b/src/components/MoneyRequestHeader.tsx @@ -178,6 +178,7 @@ function MoneyRequestHeader({ Date: Sat, 4 May 2024 22:08:08 +0800 Subject: [PATCH 2/2] show parent navigation for transaction thread in report details page --- src/pages/ReportDetailsPage.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/ReportDetailsPage.tsx b/src/pages/ReportDetailsPage.tsx index 4fb85123df8a..e97df0450eb8 100644 --- a/src/pages/ReportDetailsPage.tsx +++ b/src/pages/ReportDetailsPage.tsx @@ -79,6 +79,7 @@ function ReportDetailsPage({policies, report, session, personalDetails}: ReportD const isChatThread = useMemo(() => ReportUtils.isChatThread(report), [report]); const isArchivedRoom = useMemo(() => ReportUtils.isArchivedRoom(report), [report]); const isMoneyRequestReport = useMemo(() => ReportUtils.isMoneyRequestReport(report), [report]); + const isMoneyRequest = useMemo(() => ReportUtils.isMoneyRequest(report), [report]); const isInvoiceReport = useMemo(() => ReportUtils.isInvoiceReport(report), [report]); const canEditReportDescription = useMemo(() => ReportUtils.canEditReportDescription(report, policy), [report, policy]); const shouldShowReportDescription = isChatRoom && (canEditReportDescription || report.description !== ''); @@ -334,7 +335,7 @@ function ReportDetailsPage({policies, report, session, personalDetails}: ReportD ) : ( chatRoomSubtitleText )} - {!isEmptyObject(parentNavigationSubtitleData) && (isMoneyRequestReport || isInvoiceReport) && ( + {!isEmptyObject(parentNavigationSubtitleData) && (isMoneyRequestReport || isInvoiceReport || isMoneyRequest) && (