Browse Source
Fix fonts when you build, hide Chart on Dashboard when you don't have any accounts
master
Loëck Vézien
7 years ago
No known key found for this signature in database
GPG Key ID: CBCDCE384E853AC4
2 changed files with
58 additions and
54 deletions
-
src/components/DashboardPage.js
-
src/styles/helpers.js
|
|
@ -1,6 +1,6 @@ |
|
|
|
// @flow
|
|
|
|
|
|
|
|
import React, { PureComponent } from 'react' |
|
|
|
import React, { PureComponent, Fragment } from 'react' |
|
|
|
import { compose } from 'redux' |
|
|
|
import { translate } from 'react-i18next' |
|
|
|
import { connect } from 'react-redux' |
|
|
@ -161,6 +161,8 @@ class DashboardPage extends PureComponent<Props, State> { |
|
|
|
]} |
|
|
|
/> |
|
|
|
</Card> |
|
|
|
{totalAccounts > 0 && ( |
|
|
|
<Fragment> |
|
|
|
<Card flow={3} p={0}> |
|
|
|
<AreaChart |
|
|
|
height={250} |
|
|
@ -214,6 +216,8 @@ class DashboardPage extends PureComponent<Props, State> { |
|
|
|
</Box> |
|
|
|
))} |
|
|
|
</Box> |
|
|
|
</Fragment> |
|
|
|
)} |
|
|
|
</Box> |
|
|
|
) |
|
|
|
} |
|
|
|
|
|
@ -21,7 +21,7 @@ export const fontFace = ({ |
|
|
|
}) => ` |
|
|
|
@font-face { |
|
|
|
font-family: "${name}"; |
|
|
|
src: url("/fonts/${file}.woff2") format("woff2"); |
|
|
|
src: url("${__DEV__ ? '' : __static}/fonts/${file}.woff2") format("woff2"); |
|
|
|
font-style: ${style}; |
|
|
|
font-weight: ${weight}; |
|
|
|
} |
|
|
|