Skip to content

Commit c14a153

Browse files
committed
feat: reorganize header, move megavault tab in more, remove help icon, slightly increase size of logo
1 parent b0a2312 commit c14a153

File tree

1 file changed

+21
-14
lines changed

1 file changed

+21
-14
lines changed

src/layout/Header/HeaderDesktop.tsx

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,6 @@ export const HeaderDesktop = () => {
7373
label: stringGetter({ key: STRING_KEYS.PORTFOLIO }),
7474
href: AppRoute.Portfolio,
7575
},
76-
{
77-
value: 'VAULT',
78-
label: stringGetter({ key: STRING_KEYS.MEGAVAULT }),
79-
href: AppRoute.Vault,
80-
},
8176
{
8277
value: 'REWARDS',
8378
label: stringGetter({ key: STRING_KEYS.REWARDS }),
@@ -90,6 +85,12 @@ export const HeaderDesktop = () => {
9085
value: 'MORE',
9186
label: stringGetter({ key: STRING_KEYS.MORE }),
9287
subitems: [
88+
{
89+
value: 'VAULT',
90+
slotBefore: <Icon iconName={IconName.Bank} />,
91+
label: stringGetter({ key: STRING_KEYS.MEGAVAULT }),
92+
href: AppRoute.Vault,
93+
},
9394
{
9495
value: 'DOCUMENTATION',
9596
slotBefore: <Icon iconName={IconName.Terminal} />,
@@ -172,12 +173,6 @@ export const HeaderDesktop = () => {
172173
<MobileDownloadLinks />
173174
)}
174175

175-
<$IconButton
176-
shape={ButtonShape.Rectangle}
177-
iconName={IconName.HelpCircle}
178-
onClick={() => dispatch(openDialog(DialogTypes.Help()))}
179-
/>
180-
181176
{onboardingState === OnboardingState.AccountConnected && (
182177
<NotificationsMenu
183178
slotTrigger={
@@ -189,7 +184,9 @@ export const HeaderDesktop = () => {
189184
/>
190185
)}
191186

192-
<AccountMenu />
187+
<$AccountMenuWrapper>
188+
<AccountMenu />
189+
</$AccountMenuWrapper>
193190
</$NavAfter>
194191
</$Header>
195192
);
@@ -269,7 +266,7 @@ const $LogoLink = styled(Link)`
269266
> div {
270267
margin: auto;
271268
width: auto;
272-
height: 69%;
269+
height: 85%;
273270
}
274271
`;
275272

@@ -289,7 +286,7 @@ const $NavAfter = styled.div`
289286
const $IconButton = styled(IconButton)<{ size?: string }>`
290287
${headerMixins.button}
291288
--button-border: none;
292-
--button-icon-size: 1rem;
289+
--button-icon-size: 1.15rem;
293290
--button-padding: 0 0.5em;
294291
`;
295292

@@ -306,3 +303,13 @@ const $DepositButton = styled(Button)`
306303
color: var(--color-white) !important;
307304
}
308305
`;
306+
307+
const $AccountMenuWrapper = styled.div`
308+
display: flex;
309+
align-items: center;
310+
311+
> * {
312+
transform: scale(1.15);
313+
transform-origin: center;
314+
}
315+
`;

0 commit comments

Comments
 (0)