Browse Source

Add bottom padding and ability to scroll in MainSideBar

master
meriadec 7 years ago
parent
commit
985a81dda7
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 7
      src/components/MainSideBar/index.js

7
src/components/MainSideBar/index.js

@ -21,6 +21,7 @@ import { getUpdateStatus } from 'reducers/update'
import { SideBarList, SideBarListItem } from 'components/base/SideBar' import { SideBarList, SideBarListItem } from 'components/base/SideBar'
import Box from 'components/base/Box' import Box from 'components/base/Box'
import GrowScroll from 'components/base/GrowScroll'
import Space from 'components/base/Space' import Space from 'components/base/Space'
import IconManager from 'icons/Manager' import IconManager from 'icons/Manager'
@ -82,7 +83,8 @@ class MainSideBar extends PureComponent<Props> {
) )
return ( return (
<Box bg="white" style={{ width: 230 }}> <Box relative bg="white" style={{ width: 230 }}>
<GrowScroll>
<Space of={70} /> <Space of={70} />
<SideBarList title={t('sidebar:menu')}> <SideBarList title={t('sidebar:menu')}>
<SideBarListItem <SideBarListItem
@ -122,7 +124,6 @@ class MainSideBar extends PureComponent<Props> {
</SideBarList> </SideBarList>
<Space of={40} /> <Space of={40} />
<SideBarList <SideBarList
scroll
title={t('sidebar:accounts')} title={t('sidebar:accounts')}
titleRight={addAccountButton} titleRight={addAccountButton}
emptyText={t('emptyState:sidebar.text')} emptyText={t('emptyState:sidebar.text')}
@ -136,6 +137,8 @@ class MainSideBar extends PureComponent<Props> {
/> />
))} ))}
</SideBarList> </SideBarList>
<Space of={15} />
</GrowScroll>
</Box> </Box>
) )
} }

Loading…
Cancel
Save