Browse Source

Update banner also shows up on dashboard empty state

master
Thibaut Boustany 7 years ago
parent
commit
95bcf6ab88
No known key found for this signature in database GPG Key ID: 32475B11A2B13EEC
  1. 4
      src/components/DashboardPage/index.js
  2. 1
      src/components/UpdateNotifier/UpdateDownloaded.js

4
src/components/DashboardPage/index.js

@ -95,10 +95,11 @@ class DashboardPage extends PureComponent<Props, State> {
const displayOperations = accounts.some(displayOperationsHelper)
return (
<Fragment>
<UpdateNotifier />
<Box flow={7}>
{totalAccounts > 0 ? (
<Fragment>
<UpdateNotifier mt={-5} />
<Box horizontal alignItems="flex-end">
<Box grow>
<Text color="dark" ff="Museo Sans" fontSize={7}>
@ -182,6 +183,7 @@ class DashboardPage extends PureComponent<Props, State> {
<EmptyState />
)}
</Box>
</Fragment>
)
}
}

1
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)`,
}),

Loading…
Cancel
Save