Skip to content

Commit

Permalink
fix - exchange menu => sticks to the top and does not scroll with the…
Browse files Browse the repository at this point in the history
… content / left alignment
  • Loading branch information
Lyncee59 committed May 29, 2018
1 parent f963d93 commit 001db3e
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ const Wrapper = styled.div`
justify-content: space-between;
align-items: center;
width: 100%;
padding: 5px 30px;
padding: 0 30px;
box-sizing: border-box;
background-color: ${props => props.theme['white-blue']};
border-bottom: 1px solid ${props => props.theme['gray-1']};
> div > span:first-child { padding-left: 0px; }
`
const Shapeshift = styled(TextGroup)`
display: flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ 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'
import ExchangeMenu from '..//Exchange'
import Exchange from '../../scenes/Exchange';

const Wrapper = styled.div`
display: flex;
Expand Down Expand Up @@ -92,6 +94,8 @@ const WalletLayout = props => {
{ location.pathname === '/eth/transactions' && <EthMenu /> }
{ location.pathname === '/settings/addresses' && <AddrMenu /> }
{ location.pathname === '/settings/addresses/bch' && <AddrMenu /> }
{ location.pathname === '/exchange' && <ExchangeMenu /> }
{ location.pathname === '/exchange/history' && <ExchangeMenu /> }
<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 ExchangeLayout from 'layouts/Exchange'
import Shapeshift from './Shapeshift'
import Info from './Info'
import Support from './Support'
Expand Down Expand Up @@ -44,17 +43,15 @@ const ColumnRight = styled(Column)`
}
`
const Exchange = () => (
<ExchangeLayout>
<Wrapper>
<ColumnLeft>
<Shapeshift />
<Support />
</ColumnLeft>
<ColumnRight>
<Info />
</ColumnRight>
</Wrapper>
</ExchangeLayout>
<Wrapper>
<ColumnLeft>
<Shapeshift />
<Support />
</ColumnLeft>
<ColumnRight>
<Info />
</ColumnRight>
</Wrapper>
)

export default Exchange
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react'
import styled from 'styled-components'

import ExchangeLayout from 'layouts/Exchange'
import { Text } from 'blockchain-info-components'

const Wrapper = styled.div`
Expand All @@ -15,11 +14,9 @@ const Wrapper = styled.div`
`

export default (props) => (
<ExchangeLayout>
<Wrapper>
<Text size='12px' weight={300} color='red'>
{props.children}
</Text>
</Wrapper>
</ExchangeLayout>
<Wrapper>
<Text size='12px' weight={300} color='red'>
{props.children}
</Text>
</Wrapper>
)
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react'
import styled from 'styled-components'

import ExchangeLayout from 'layouts/Exchange'
import { BlockchainLoader } from 'blockchain-info-components'

const Wrapper = styled.div`
Expand All @@ -15,9 +14,7 @@ const Wrapper = styled.div`
`

export default (props) => (
<ExchangeLayout>
<Wrapper>
<BlockchainLoader width='200px' height='200px' />
</Wrapper>
</ExchangeLayout>
<Wrapper>
<BlockchainLoader width='200px' height='200px' />
</Wrapper>
)
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
import React from 'react'
import PropTypes from 'prop-types'

import ExchangeLayout from 'layouts/Exchange'
import Empty from './Empty'
import List from './List'

const Success = props => {
const { complete, incomplete, showComplete, showIncomplete } = props.trades

return (
<ExchangeLayout>
{ !showComplete && !showIncomplete
? <Empty />
: <List complete={complete} incomplete={incomplete} showComplete={showComplete} showIncomplete={showIncomplete} />
}
</ExchangeLayout>
)
return !showComplete && !showIncomplete
? <Empty />
: <List complete={complete} incomplete={incomplete} showComplete={showComplete} showIncomplete={showIncomplete} />
}

Success.propTypes = {
Expand Down

0 comments on commit 001db3e

Please sign in to comment.