@@ -4,7 +4,7 @@ import { objectEntries, objectKeys } from 'tsafe';
44
55import useChain from 'src/domains/chains/utils/useChain' ;
66import CIcon from 'src/domains/misc/components/CIcon' ;
7- import DoubleBorderBox from 'src/domains/misc/components/DoubleBorderBox ' ;
7+ import ContentBox from 'src/domains/misc/components/ContentBox ' ;
88import Skeleton from 'src/domains/misc/components/Skeleton' ;
99import Tabs from 'src/domains/misc/components/Tabs' ;
1010import Title from 'src/domains/misc/components/Title' ;
@@ -69,7 +69,7 @@ useState<keyof typeof TABS>('tokens');
6969
7070 if ( ! isSuccess ) {
7171 return (
72- < Wrapper >
72+ < Container >
7373 < WithPadding >
7474 < Skeleton
7575 style = { {
@@ -81,72 +81,72 @@ useState<keyof typeof TABS>('tokens');
8181 } }
8282 />
8383 </ WithPadding >
84- </ Wrapper >
84+ </ Container >
8585 ) ;
8686 }
8787
8888 return (
89- < Wrapper >
90- < Container $withoutBottomPadding = { currentTab === 'activity' } >
91- < WithPadding >
92- < Title size = "medium" > Your accounts</ Title >
93- < AccountTypeSelector />
94- < Tabs size = "small" selectedTabKey = { currentTab } tabsConfig = { tabsConfig } />
95- </ WithPadding >
96- { currentTab === 'activity' ? (
97- < Activity />
98- ) : (
99- < >
100- { selectedAccountType === 'public' && (
101- < WithPadding >
102- < InfoBox >
103- < CIcon icon = "Info" size = { 20 } />
104- < p > Tokens that can be moved to shielded account:</ p >
105- </ InfoBox >
106- </ WithPadding >
107- ) }
108- < TokensWrapper >
109- < TokenList tokens = { tokens } />
110- </ TokensWrapper >
111- { selectedAccountType === 'shielded' && (
112- < WithPadding >
113- < Disclaimer >
114- < InfoContainer >
115- < CIcon
116- icon = "InfoRegular"
117- size = { 20 }
118- color = { vars ( '--color-neutral-foreground-3-rest' ) }
119- />
120- < p >
121- Shielded account is created based on your connected account.
122- It’s specific to the platform you use – accounts created in
123- the Web App can be retrieved from the Web App on another device.
124- </ p >
125- </ InfoContainer >
126- < ShieldImage src = { shieldImage } alt = "Shield icon" />
127- </ Disclaimer >
128- </ WithPadding >
129- ) }
130- </ >
131- ) }
132- </ Container >
133- </ Wrapper >
89+ < Container $withoutBottomPadding = { currentTab === 'activity' } >
90+ < WithPadding >
91+ < Title size = "medium" > Your accounts</ Title >
92+ < AccountTypeSelector />
93+ < Tabs size = "small" selectedTabKey = { currentTab } tabsConfig = { tabsConfig } />
94+ </ WithPadding >
95+ { currentTab === 'activity' ? (
96+ < Activity />
97+ ) : (
98+ < >
99+ { selectedAccountType === 'public' && (
100+ < WithPadding >
101+ < InfoBox >
102+ < CIcon icon = "Info" size = { 20 } />
103+ < p > Tokens that can be moved to shielded account:</ p >
104+ </ InfoBox >
105+ </ WithPadding >
106+ ) }
107+ < TokensWrapper >
108+ < TokenList tokens = { tokens } />
109+ </ TokensWrapper >
110+ { selectedAccountType === 'shielded' && (
111+ < WithPadding >
112+ < Disclaimer >
113+ < InfoContainer >
114+ < CIcon
115+ icon = "InfoRegular"
116+ size = { 20 }
117+ color = { vars ( '--color-neutral-foreground-3-rest' ) }
118+ />
119+ < p >
120+ Shielded account is created based on your connected account.
121+ It’s specific to the platform you use – accounts created in
122+ the Web App can be retrieved from the Web App on another device.
123+ </ p >
124+ </ InfoContainer >
125+ < ShieldImage src = { shieldImage } alt = "Shield icon" />
126+ </ Disclaimer >
127+ </ WithPadding >
128+ ) }
129+ </ >
130+ ) }
131+ </ Container >
134132 ) ;
135133} ;
136134
137135export default Shielder ;
138136
139- const Wrapper = styled ( DoubleBorderBox . Wrapper ) `
140- width: 100%;
141- overflow: hidden;
142- ` ;
143-
144- const Container = styled ( DoubleBorderBox . Content ) < { $withoutBottomPadding ?: boolean } > `
137+ const Container = styled ( ContentBox ) < { $withoutBottomPadding ?: boolean } > `
145138 display: flex;
146- flex-direction: column;
139+
140+
147141 gap: ${ vars ( '--spacing-l' ) } ;
142+ flex-direction: column;
143+
144+ width: 100%;
148145 padding-inline: ${ vars ( '--spacing-none' ) } ;
149146 padding-block: ${ vars ( '--spacing-l' ) } ;
147+
148+ overflow: hidden;
149+
150150 ${ ( { $withoutBottomPadding } ) => $withoutBottomPadding && css `
151151 padding-bottom: 0;
152152 `
@@ -174,7 +174,7 @@ const InfoBox = styled.div`
174174 ${ typography . body1Strong } ;
175175` ;
176176
177- const Disclaimer = styled ( DoubleBorderBox . Content ) `
177+ const Disclaimer = styled ( ContentBox ) `
178178 display: flex;
179179
180180 flex-direction: row;
0 commit comments