Commit 5214b75 1 parent 065ff63 commit 5214b75 Copy full SHA for 5214b75
File tree 2 files changed +20
-0
lines changed
apps/ledger-live-desktop/src/renderer
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -292,6 +292,16 @@ export type LLDCoinFamily<
292
292
*/
293
293
StepSummaryNetworkFeesRow ?: React . ComponentType < SummaryNetworkFeesRowProps > ;
294
294
295
+ /**
296
+ * Allow to add specific component in Send modal at the end of Summary Step
297
+ */
298
+ StepSummaryAdditionalRows ?: React . ComponentType < {
299
+ account : A | SubAccount ;
300
+ parentAccount : A | null | undefined ;
301
+ transaction : T ;
302
+ status : TS ;
303
+ } > ;
304
+
295
305
/**
296
306
* It was for Hedera specifc, when we do not find any account it show a specific component
297
307
*/
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ const StepSummary = (props: StepProps) => {
77
77
78
78
const specific = currency ? getLLDCoinFamily ( mainAccount . currency . family ) : null ;
79
79
const SpecificSummaryNetworkFeesRow = specific ?. StepSummaryNetworkFeesRow ;
80
+ const SpecificSummaryAdditionalRows = specific ?. StepSummaryAdditionalRows ;
80
81
81
82
const memo = "memo" in transaction ? transaction . memo : undefined ;
82
83
@@ -260,6 +261,15 @@ const StepSummary = (props: StepProps) => {
260
261
</ >
261
262
) }
262
263
264
+ { ! ! SpecificSummaryAdditionalRows && (
265
+ < SpecificSummaryAdditionalRows
266
+ account = { account }
267
+ parentAccount = { parentAccount }
268
+ transaction = { transaction }
269
+ status = { status }
270
+ />
271
+ ) }
272
+
263
273
{ ! totalSpent . eq ( amount ) ? (
264
274
< >
265
275
< Separator />
You can’t perform that action at this time.
0 commit comments