From b5f1a1705cbec55d0b03c71228d7a102feff838d Mon Sep 17 00:00:00 2001 From: Abhas Kumar Date: Tue, 26 Dec 2023 03:05:09 +0530 Subject: [PATCH] refactor types for intersection --- src/components/MoneyReportHeader.tsx | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/components/MoneyReportHeader.tsx b/src/components/MoneyReportHeader.tsx index 9302227f8bd6..b50ac1516400 100644 --- a/src/components/MoneyReportHeader.tsx +++ b/src/components/MoneyReportHeader.tsx @@ -26,8 +26,13 @@ import MoneyReportHeaderStatusBar from './MoneyReportHeaderStatusBar'; import SettlementButton from './SettlementButton'; type MoneyReportHeaderOnyxProps = { + /** The chat report this report is linked to */ chatReport: OnyxEntry; + + /** The next step for the report */ nextStep: OnyxEntry; + + /** UserSession info for the currently logged in user. */ session: OnyxEntry; } @@ -38,17 +43,8 @@ type MoneyReportHeaderProps = MoneyReportHeaderOnyxProps & { /** The policy tied to the money request report */ policy: Policy; - /** The chat report this report is linked to */ - chatReport: Report; - - /** The next step for the report */ - nextStep: ReportNextStep; - /** Personal details so we can get the ones for the report participants */ personalDetails: PersonalDetails - - /** UserSession info for the currently logged in user. */ - session: Session; }; function MoneyReportHeader({session, personalDetails, policy, chatReport, nextStep, report: moneyRequestReport}: MoneyReportHeaderProps) {