Browse Source
Update banner also shows up on dashboard empty state
master
Thibaut Boustany
7 years ago
No known key found for this signature in database
GPG Key ID: 32475B11A2B13EEC
2 changed files with
82 additions and
79 deletions
-
src/components/DashboardPage/index.js
-
src/components/UpdateNotifier/UpdateDownloaded.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> |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
@ -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)`, |
|
|
|
}), |
|
|
|