You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/components/ReportActionItem/TransactionPreview/types.ts
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ type TransactionPreviewStyleType = {
11
11
};
12
12
13
13
typeTransactionPreviewProps={
14
-
/** The active IOUReport, used for Onyx subscription */
14
+
/** The active reportID linked to the transaction */
15
15
iouReportID: string|undefined;
16
16
17
17
/** The associated chatReport */
@@ -65,7 +65,7 @@ type TransactionPreviewProps = {
65
65
reportPreviewAction?: ReportAction;
66
66
67
67
/** Whether to show payer/receiver data in the preview */
68
-
shouldShowIOUData?: boolean;
68
+
shouldShowPayerAndReceiver?: boolean;
69
69
70
70
/** In case we want to override context menu action */
71
71
contextAction?: OnyxEntry<ReportAction>;
@@ -93,15 +93,19 @@ type TransactionPreviewContentProps = {
93
93
/** Records any errors related to wallet terms. */
94
94
walletTermsErrors: Errors|undefined;
95
95
96
-
/** Represents the IOU report entry from Onyx */
97
-
iouReport: OnyxEntry<Report>;
96
+
/** Represents the report linked to the transaction */
97
+
report: OnyxEntry<Report>;
98
98
99
99
/** Flag to determine if a transaction involves a bill split among multiple parties. */
100
100
isBillSplit: boolean;
101
101
102
102
/** Holds the transaction data entry from Onyx */
103
103
transaction: OnyxEntry<Transaction>;
104
104
105
+
/** The original amount value on the transaction. This is used to deduce who is the sender and who is the receiver of the money request
106
+
* In case of Splits the property `transaction` is actually an original transaction (for the whole split) and it does not have the data required to deduce who is the sender */
107
+
transactionRawAmount: number;
108
+
105
109
/** Represents the action entry from Onyx */
106
110
action: OnyxEntry<ReportAction>;
107
111
@@ -130,7 +134,7 @@ type TransactionPreviewContentProps = {
130
134
reportPreviewAction?: ReportAction;
131
135
132
136
/** Whether to show payer/receiver data in the preview */
133
-
shouldShowIOUData?: boolean;
137
+
shouldShowPayerAndReceiver?: boolean;
134
138
135
139
/** Is this component used during duplicate review flow */
0 commit comments