1
1
import { ReactElement , ReactNode } from 'react' ;
2
2
import styled , { css , useTheme } from 'styled-components' ;
3
3
4
- import {
5
- Elevation ,
6
- borders ,
7
- mapElevationToBackground ,
8
- mapElevationToBorder ,
9
- spacingsPx ,
10
- typography ,
11
- } from '@trezor/theme' ;
4
+ import { Elevation , spacingsPx , spacings , typography } from '@trezor/theme' ;
12
5
import { WalletAccountTransaction } from '@suite-common/wallet-types' ;
13
6
import { formatAmount , formatNetworkAmount , isNftTokenTransfer } from '@suite-common/wallet-utils' ;
14
7
import { FormattedCryptoAmount , Translation } from 'src/components/suite' ;
15
8
import { useSelector } from 'src/hooks/suite/useSelector' ;
16
9
import { AnonymitySet , TokenTransfer } from '@trezor/blockchain-link' ;
17
- import { Icon , CollapsibleBox , useElevation } from '@trezor/components' ;
10
+ import { Icon , CollapsibleBox , useElevation , Divider } from '@trezor/components' ;
18
11
import { UtxoAnonymity } from 'src/components/wallet' ;
19
12
import { AnalyzeInExplorerBanner } from './AnalyzeInExplorerBanner' ;
20
13
import { FormattedNftAmount } from 'src/components/suite/FormattedNftAmount' ;
@@ -34,38 +27,15 @@ const Wrapper = styled.div`
34
27
` ;
35
28
36
29
const StyledCollapsibleBox = styled ( CollapsibleBox ) < { $elevation : Elevation } > `
37
- background: none;
38
- box-shadow: none;
39
- border-radius: 0;
40
- margin-bottom: 0;
41
- padding-bottom: ${ spacingsPx . md } ;
42
- text-align: left;
43
30
overflow: auto;
44
- ${ blurFix }
45
-
46
- & + & {
47
- border-top: 1px solid ${ mapElevationToBorder } ;
48
-
49
- padding-top: ${ spacingsPx . md } ;
50
- }
51
31
52
32
${ CollapsibleBox . Header } {
53
33
padding: ${ spacingsPx . md } 0;
54
- border-radius: ${ borders . radii . sm } ;
55
- ${ blurFix }
56
-
57
- &:hover {
58
- background-color: ${ mapElevationToBackground } ;
59
- }
60
- }
61
-
62
- ${ CollapsibleBox . Heading } {
63
- color: ${ ( { theme } ) => theme . textDefault } ;
64
34
}
65
35
66
36
${ CollapsibleBox . Content } {
67
- padding: ${ spacingsPx . xs } 0 0;
68
37
border: none;
38
+ padding-bottom: ${ spacingsPx . md } ;
69
39
}
70
40
` ;
71
41
@@ -476,7 +446,9 @@ const CollapsibleIOSection = ({
476
446
$elevation = { elevation }
477
447
heading = { heading }
478
448
defaultIsOpen = { opened }
479
- paddingType = "large"
449
+ paddingType = "none"
450
+ fillType = "none"
451
+ hasDivider = { false }
480
452
>
481
453
< IOSectionColumn
482
454
tx = { tx }
@@ -540,6 +512,7 @@ export const IODetails = ({ tx, isPhishingTransaction }: IODetailsProps) => {
540
512
inputs = { tx . details . vin ?. filter ( vin => vin . isAccountOwned ) }
541
513
outputs = { tx . details . vout ?. filter ( vout => vout . isAccountOwned ) }
542
514
/>
515
+ < Divider margin = { { top : spacings . xs , bottom : spacings . xxs } } />
543
516
< CollapsibleIOSection
544
517
heading = { < Translation id = "TR_OTHER_INPUTS_AND_OUTPUTS" /> }
545
518
tx = { tx }
0 commit comments