From 95bcf6ab88b4e1fc08d69d6d2a747b5d8ac99a58 Mon Sep 17 00:00:00 2001 From: Thibaut Boustany Date: Fri, 15 Jun 2018 18:28:05 +0200 Subject: [PATCH] Update banner also shows up on dashboard empty state --- src/components/DashboardPage/index.js | 160 +++++++++--------- .../UpdateNotifier/UpdateDownloaded.js | 1 + 2 files changed, 82 insertions(+), 79 deletions(-) diff --git a/src/components/DashboardPage/index.js b/src/components/DashboardPage/index.js index 5c3b7ee0..6894b765 100644 --- a/src/components/DashboardPage/index.js +++ b/src/components/DashboardPage/index.js @@ -95,93 +95,95 @@ class DashboardPage extends PureComponent { const displayOperations = accounts.some(displayOperationsHelper) return ( - - {totalAccounts > 0 ? ( - - - - - - {t(timeFrame)} - - - {t('app:dashboard.summary', { count: totalAccounts })} - - - - - - + + + + {totalAccounts > 0 ? ( - ( - - )} - /> - - - - {t('app:dashboard.accounts.title', { count: accounts.length })} + + + + {t(timeFrame)} + + + {t('app:dashboard.summary', { count: totalAccounts })} - - - - - {accounts - .concat(Array(3 - (accounts.length % 3)).fill(null)) - .map((account, i) => ( - - {account ? ( - - ) : null} - - ))} + + - {displayOperations && ( - + ( + + )} /> - )} - + + + + {t('app:dashboard.accounts.title', { count: accounts.length })} + + + + + + + {accounts + .concat(Array(3 - (accounts.length % 3)).fill(null)) + .map((account, i) => ( + + {account ? ( + + ) : null} + + ))} + + + {displayOperations && ( + + )} + + - - ) : ( - - )} - + ) : ( + + )} + + ) } } diff --git a/src/components/UpdateNotifier/UpdateDownloaded.js b/src/components/UpdateNotifier/UpdateDownloaded.js index 9fcbb051..5f0cb77a 100644 --- a/src/components/UpdateNotifier/UpdateDownloaded.js +++ b/src/components/UpdateNotifier/UpdateDownloaded.js @@ -35,6 +35,7 @@ const Container = styled(Box).attrs({ px: 3, bg: 'wallet', color: 'white', + mt: '-35px', style: p => ({ transform: `translate3d(0, ${p.offset}%, 0)`, }),