Browse Source

Make UpdateNotifier to appear even if no accounts

also switch the 2 buttons
master
Gaëtan Renaudeau 7 years ago
parent
commit
4f7efca02d
  1. 6
      src/components/DashboardPage/EmptyState.js
  2. 2
      src/components/DashboardPage/index.js

6
src/components/DashboardPage/EmptyState.js

@ -48,6 +48,9 @@ class EmptyState extends PureComponent<Props, *> {
<Title>{t('app:emptyState.dashboard.title')}</Title> <Title>{t('app:emptyState.dashboard.title')}</Title>
<Description>{t('app:emptyState.dashboard.desc')}</Description> <Description>{t('app:emptyState.dashboard.desc')}</Description>
<Box mt={3} horizontal justifyContent="space-around" style={{ width: 300 }}> <Box mt={3} horizontal justifyContent="space-around" style={{ width: 300 }}>
<Button padded primary style={{ width: 120 }} onClick={this.handleInstallApp}>
{t('app:emptyState.dashboard.buttons.installApp')}
</Button>
<Button <Button
padded padded
primary primary
@ -56,9 +59,6 @@ class EmptyState extends PureComponent<Props, *> {
> >
{t('app:emptyState.dashboard.buttons.addAccount')} {t('app:emptyState.dashboard.buttons.addAccount')}
</Button> </Button>
<Button padded primary style={{ width: 120 }} onClick={this.handleInstallApp}>
{t('app:emptyState.dashboard.buttons.installApp')}
</Button>
</Box> </Box>
</Box> </Box>
</Box> </Box>

2
src/components/DashboardPage/index.js

@ -96,9 +96,9 @@ class DashboardPage extends PureComponent<Props, State> {
return ( return (
<Box flow={7}> <Box flow={7}>
<UpdateNotifier mt={-5} />
{totalAccounts > 0 ? ( {totalAccounts > 0 ? (
<Fragment> <Fragment>
<UpdateNotifier mt={-5} />
<Box horizontal alignItems="flex-end"> <Box horizontal alignItems="flex-end">
<Box grow> <Box grow>
<Text color="dark" ff="Museo Sans" fontSize={7}> <Text color="dark" ff="Museo Sans" fontSize={7}>

Loading…
Cancel
Save