|
@ -18,20 +18,20 @@ import { getVisibleAccounts } from 'reducers/accounts' |
|
|
import { formatBTC } from 'helpers/format' |
|
|
import { formatBTC } from 'helpers/format' |
|
|
|
|
|
|
|
|
import Box, { Tabbable } from 'components/base/Box' |
|
|
import Box, { Tabbable } from 'components/base/Box' |
|
|
import Bar from 'components/base/Bar' |
|
|
|
|
|
import GrowScroll from 'components/base/GrowScroll' |
|
|
import GrowScroll from 'components/base/GrowScroll' |
|
|
import Icon from 'components/base/Icon' |
|
|
import Icon from 'components/base/Icon' |
|
|
import Text from 'components/base/Text' |
|
|
import Text from 'components/base/Text' |
|
|
import Item from './Item' |
|
|
import Item from './Item' |
|
|
|
|
|
|
|
|
const CapsSubtitle = styled(Box).attrs({ |
|
|
const CapsSubtitle = styled(Box).attrs({ |
|
|
px: 3, |
|
|
color: 'dark', |
|
|
fontSize: 0, |
|
|
ff: 'Museo Sans|ExtraBold', |
|
|
color: 'grey', |
|
|
fontSize: 1, |
|
|
|
|
|
px: 4, |
|
|
})` |
|
|
})` |
|
|
cursor: default; |
|
|
cursor: default; |
|
|
|
|
|
letter-spacing: 2px; |
|
|
text-transform: uppercase; |
|
|
text-transform: uppercase; |
|
|
font-weight: bold; |
|
|
|
|
|
` |
|
|
` |
|
|
|
|
|
|
|
|
const Container = styled(Box)` |
|
|
const Container = styled(Box)` |
|
@ -84,10 +84,10 @@ class SideBar extends PureComponent<Props> { |
|
|
|
|
|
|
|
|
return ( |
|
|
return ( |
|
|
<Container bg="white"> |
|
|
<Container bg="white"> |
|
|
<Box flow={3} pt={4} grow> |
|
|
<Box flow={7} pt={8} grow> |
|
|
<Box flow={2}> |
|
|
<Box flow={4}> |
|
|
<CapsSubtitle>{t('sidebar.menu')}</CapsSubtitle> |
|
|
<CapsSubtitle>{t('sidebar.menu')}</CapsSubtitle> |
|
|
<Box px={2} flow={1}> |
|
|
<Box px={4} flow={2}> |
|
|
<Item icon="chart-bar" linkTo="/"> |
|
|
<Item icon="chart-bar" linkTo="/"> |
|
|
{t('dashboard.title')} |
|
|
{t('dashboard.title')} |
|
|
</Item> |
|
|
</Item> |
|
@ -102,21 +102,21 @@ class SideBar extends PureComponent<Props> { |
|
|
</Item> |
|
|
</Item> |
|
|
</Box> |
|
|
</Box> |
|
|
</Box> |
|
|
</Box> |
|
|
<Bar color="cream" mx={3} size={2} /> |
|
|
<Box flow={4} grow pt={1}> |
|
|
<Box flow={2} grow> |
|
|
|
|
|
<CapsSubtitle horizontal align="center"> |
|
|
<CapsSubtitle horizontal align="center"> |
|
|
<Box grow>{t('sidebar.accounts')}</Box> |
|
|
<Box grow>{t('sidebar.accounts')}</Box> |
|
|
<PlusBtn onClick={() => openModal(MODAL_ADD_ACCOUNT)}> |
|
|
<PlusBtn onClick={() => openModal(MODAL_ADD_ACCOUNT)}> |
|
|
<Icon name="plus-circle" /> |
|
|
<Icon name="plus-circle" /> |
|
|
</PlusBtn> |
|
|
</PlusBtn> |
|
|
</CapsSubtitle> |
|
|
</CapsSubtitle> |
|
|
<GrowScroll pb={2} px={2} flow={1}> |
|
|
<GrowScroll pb={4} px={4} flow={2}> |
|
|
{accounts.map(account => ( |
|
|
{accounts.map(account => ( |
|
|
<Item |
|
|
<Item |
|
|
linkTo={`/account/${account.id}`} |
|
|
big |
|
|
desc={formatBTC(account.data ? account.data.balance : 0)} |
|
|
desc={formatBTC(account.data ? account.data.balance : 0)} |
|
|
key={account.id} |
|
|
|
|
|
icon={{ iconName: 'btc', prefix: 'fab' }} |
|
|
icon={{ iconName: 'btc', prefix: 'fab' }} |
|
|
|
|
|
key={account.id} |
|
|
|
|
|
linkTo={`/account/${account.id}`} |
|
|
> |
|
|
> |
|
|
{account.name} |
|
|
{account.name} |
|
|
</Item> |
|
|
</Item> |
|
|