Skip to content

Commit

Permalink
fix(Menu): make menus sticky
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed May 15, 2018
1 parent 79f7c4f commit 7b12222
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import React from 'react'
import styled from 'styled-components'

import MenuTop from './MenuTop'

const Wrapper = styled.div`
display: flex;
flex-direction: column;
Expand All @@ -16,7 +14,6 @@ const AddressesLayout = props => {

return (
<Wrapper location={location}>
<MenuTop />
{children}
</Wrapper>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ import MenuTop from './MenuTop'
import TrayRight from './TrayRight'
import Page from './Page'

import BtcMenu from '../../scenes/Transactions/Bitcoin/Menu'
import BchMenu from '../../scenes/Transactions/Bch/Menu'
import EthMenu from '../../scenes/Transactions/Ether/Menu'
import AddrMenu from '../../scenes/Settings/Addresses/Menu'

const Wrapper = styled.div`
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -82,6 +87,10 @@ const WalletLayout = props => {
<Top>
<MenuTop />
</Top>
{ location.pathname === '/btc/transactions' && <BtcMenu /> }
{ location.pathname === '/bch/transactions' && <BchMenu /> }
{ location.pathname === '/eth/transactions' && <EthMenu /> }
{ location.pathname === '/settings/addresses' && <AddrMenu /> }
<Page>
{children}
</Page>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react'
import styled from 'styled-components'

import Menu from './Menu'
import Content from './Content'

const Wrapper = styled.div`
Expand All @@ -11,7 +10,6 @@ const Wrapper = styled.div`
const BchTransactionsContainer = (props) => {
return (
<Wrapper>
<Menu />
<Content />
</Wrapper>
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import React from 'react'
import styled from 'styled-components'

import Menu from './Menu'
import Content from './Content'

const Wrapper = styled.div`
Expand All @@ -11,7 +9,6 @@ const Wrapper = styled.div`
const BitcoinTransactionsContainer = (props) => {
return (
<Wrapper>
<Menu />
<Content />
</Wrapper>
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react'
import styled from 'styled-components'

import Menu from './Menu'
import Content from './Content'

const Wrapper = styled.div`
Expand All @@ -11,7 +10,6 @@ const Wrapper = styled.div`
const EtherTransactionsContainer = (props) => {
return (
<Wrapper>
<Menu />
<Content />
</Wrapper>
)
Expand Down

0 comments on commit 7b12222

Please sign in to comment.