Browse Source
Merge pull request #586 from gre/fix-update-notifier
Make UpdateNotifier to appear even if no accounts
master
Meriadec Pillet
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
4 deletions
-
src/components/DashboardPage/EmptyState.js
-
src/components/DashboardPage/index.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> |
|
|
|
@ -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}> |
|
|