Skip to content

Commit

Permalink
[Bugfix] Move About item from Header to ellipsis menu (gnosis/cowswap…
Browse files Browse the repository at this point in the history
…#1125)

* Move About from Header to ellipsis menu

* Add FileText import
  • Loading branch information
matextrem authored and W3stside committed Sep 22, 2021
1 parent a58af65 commit 6cd492a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/custom/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@ export default function Header() {
</Title>
<HeaderLinks>
<StyledNavLink to="/swap">Swap</StyledNavLink>
<StyledNavLink to="/about">About</StyledNavLink>
{/* <StyledNavLink to="/profile">Profile</StyledNavLink> */}
<StyledNavLink to="/profile">Profile</StyledNavLink>
</HeaderLinks>
</HeaderRow>
<HeaderControls>
Expand Down
8 changes: 7 additions & 1 deletion src/custom/components/Menu/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { Code, MessageCircle, HelpCircle, BookOpen, PieChart } from 'react-feather'
import { Code, MessageCircle, HelpCircle, FileText, BookOpen, PieChart } from 'react-feather'

import MenuMod, { MenuItem, InternalMenuItem, MenuFlyout as MenuFlyoutUni } from './MenuMod'
import { useCloseModals } from 'state/application/hooks'
Expand Down Expand Up @@ -147,6 +147,12 @@ export function Menu() {
<StyledMenu>
<MenuFlyout>
<CloseMenu onClick={close} />
<InternalMenuItem to="/about" onClick={close}>
<span aria-hidden="true" onClick={close} onKeyDown={close}>
<FileText size={14} />
About
</span>
</InternalMenuItem>
<InternalMenuItem to="/faq" onClick={close}>
<HelpCircle size={14} />
FAQ
Expand Down

0 comments on commit 6cd492a

Please sign in to comment.