@@ -2,7 +2,7 @@ import styled, { useTheme } from 'styled-components';
2
2
import { BigNumber } from '@trezor/utils/src/bigNumber' ;
3
3
import { getFeeUnits , formatNetworkAmount , formatAmount , getFee } from '@suite-common/wallet-utils' ;
4
4
import { Icon , CoinLogo , variables } from '@trezor/components' ;
5
- import { formatDuration , isFeatureFlagEnabled } from '@suite-common/suite-utils' ;
5
+ import { formatDuration } from '@suite-common/suite-utils' ;
6
6
import { borders , spacingsPx , typography } from '@trezor/theme' ;
7
7
import { TranslationKey } from '@suite-common/intl-types' ;
8
8
import { Translation , FormattedCryptoAmount , AccountLabel } from 'src/components/suite' ;
@@ -164,7 +164,7 @@ const LeftDetailsBottom = styled.div`
164
164
flex: 1;
165
165
` ;
166
166
167
- const ReviewRbfLeftDetailsLineLeft = styled . div `
167
+ const ReviewLeftDetailsLineLeft = styled . div `
168
168
display: flex;
169
169
align-items: center;
170
170
margin: 0 5% 0 0;
@@ -177,7 +177,7 @@ const ReviewRbfLeftDetailsLineLeft = styled.div`
177
177
}
178
178
` ;
179
179
180
- const ReviewRbfLeftDetailsLineRight = styled . div < { $color : string ; $uppercase ?: boolean } > `
180
+ const ReviewLeftDetailsLineRight = styled . div < { $color : string ; $uppercase ?: boolean } > `
181
181
width: 45%;
182
182
text-align: left;
183
183
color: ${ props => props . $color } ;
@@ -268,40 +268,40 @@ export const TransactionReviewSummary = ({
268
268
< LeftDetails >
269
269
{ estimateTime !== undefined && (
270
270
< LeftDetailsRow >
271
- < ReviewRbfLeftDetailsLineLeft >
271
+ < ReviewLeftDetailsLineLeft >
272
272
< Icon size = { 12 } color = { theme . iconSubdued } icon = "CALENDAR" />
273
273
< Translation id = "TR_DELIVERY" />
274
- </ ReviewRbfLeftDetailsLineLeft >
274
+ </ ReviewLeftDetailsLineLeft >
275
275
276
- < ReviewRbfLeftDetailsLineRight $color = { theme . textSubdued } >
276
+ < ReviewLeftDetailsLineRight $color = { theme . textSubdued } >
277
277
{ formatDuration ( estimateTime ) }
278
- </ ReviewRbfLeftDetailsLineRight >
278
+ </ ReviewLeftDetailsLineRight >
279
279
</ LeftDetailsRow >
280
280
) }
281
281
{ ! ! tx . feeLimit && network . networkType !== 'solana' && (
282
282
< LeftDetailsRow >
283
- < ReviewRbfLeftDetailsLineLeft >
283
+ < ReviewLeftDetailsLineLeft >
284
284
< Icon size = { 12 } color = { theme . iconSubdued } icon = "GAS" />
285
285
< Translation id = "TR_GAS_LIMIT" />
286
- </ ReviewRbfLeftDetailsLineLeft >
286
+ </ ReviewLeftDetailsLineLeft >
287
287
288
- < ReviewRbfLeftDetailsLineRight $color = { theme . textSubdued } >
288
+ < ReviewLeftDetailsLineRight $color = { theme . textSubdued } >
289
289
{ tx . feeLimit }
290
- </ ReviewRbfLeftDetailsLineRight >
290
+ </ ReviewLeftDetailsLineRight >
291
291
</ LeftDetailsRow >
292
292
) }
293
293
< LeftDetailsRow >
294
- < ReviewRbfLeftDetailsLineLeft >
294
+ < ReviewLeftDetailsLineLeft >
295
295
< Icon size = { 12 } color = { theme . iconSubdued } icon = "GAS" />
296
296
{ network . networkType === 'bitcoin' && < Translation id = "TR_FEE_RATE" /> }
297
297
{ network . networkType === 'ethereum' && < Translation id = "TR_GAS_PRICE" /> }
298
298
{ network . networkType === 'ripple' && < Translation id = "TR_TX_FEE" /> }
299
299
{ network . networkType === 'solana' && < Translation id = "TR_TX_FEE" /> }
300
- </ ReviewRbfLeftDetailsLineLeft >
300
+ </ ReviewLeftDetailsLineLeft >
301
301
302
- < ReviewRbfLeftDetailsLineRight $color = { theme . textSubdued } >
302
+ < ReviewLeftDetailsLineRight $color = { theme . textSubdued } >
303
303
{ fee } { getFeeUnits ( network . networkType ) }
304
- </ ReviewRbfLeftDetailsLineRight >
304
+ </ ReviewLeftDetailsLineRight >
305
305
</ LeftDetailsRow >
306
306
307
307
{ isComposedFeeRateDifferent && network . networkType === 'bitcoin' && (
@@ -313,35 +313,18 @@ export const TransactionReviewSummary = ({
313
313
) }
314
314
315
315
< LeftDetailsRow >
316
- < ReviewRbfLeftDetailsLineLeft >
316
+ < ReviewLeftDetailsLineLeft >
317
317
< Icon size = { 12 } color = { theme . iconSubdued } icon = "BROADCAST" />
318
318
< Translation id = "BROADCAST" />
319
- </ ReviewRbfLeftDetailsLineLeft >
319
+ </ ReviewLeftDetailsLineLeft >
320
320
321
- < ReviewRbfLeftDetailsLineRight
321
+ < ReviewLeftDetailsLineRight
322
322
$color = { broadcast ? theme . textPrimaryDefault : theme . textAlertYellow }
323
323
$uppercase
324
324
>
325
325
< Translation id = { broadcast ? 'TR_ON' : 'TR_OFF' } />
326
- </ ReviewRbfLeftDetailsLineRight >
326
+ </ ReviewLeftDetailsLineRight >
327
327
</ LeftDetailsRow >
328
- { isFeatureFlagEnabled ( 'RBF' ) &&
329
- network . features ?. includes ( 'rbf' ) &&
330
- network . networkType !== 'ethereum' && (
331
- < LeftDetailsRow >
332
- < ReviewRbfLeftDetailsLineLeft >
333
- < Icon size = { 12 } color = { theme . textSubdued } icon = "RBF" />
334
- < Translation id = "RBF" />
335
- </ ReviewRbfLeftDetailsLineLeft >
336
-
337
- < ReviewRbfLeftDetailsLineRight
338
- $color = { tx . rbf ? theme . textPrimaryDefault : theme . textAlertYellow }
339
- $uppercase
340
- >
341
- < Translation id = { tx . rbf ? 'TR_ON' : 'TR_OFF' } />
342
- </ ReviewRbfLeftDetailsLineRight >
343
- </ LeftDetailsRow >
344
- ) }
345
328
{ tx . inputs . length !== 0 && (
346
329
< LeftDetailsBottom >
347
330
< Separator />
0 commit comments