Skip to content

Commit

Permalink
refactor types for intersection
Browse files Browse the repository at this point in the history
  • Loading branch information
KrAbhas committed Dec 25, 2023
1 parent 883eaae commit b5f1a17
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/components/MoneyReportHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,13 @@ import MoneyReportHeaderStatusBar from './MoneyReportHeaderStatusBar';
import SettlementButton from './SettlementButton';

type MoneyReportHeaderOnyxProps = {
/** The chat report this report is linked to */
chatReport: OnyxEntry<Report>;

/** The next step for the report */
nextStep: OnyxEntry<ReportNextStep>;

/** UserSession info for the currently logged in user. */
session: OnyxEntry<Session>;
}

Expand All @@ -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) {
Expand Down

0 comments on commit b5f1a17

Please sign in to comment.