Gaëtan Renaudeau
6 years ago
No known key found for this signature in database
GPG Key ID: 7B66B85F042E5451
2 changed files with
10 additions and
2 deletions
-
src/components/CurrenciesStatusBanner.js
-
src/reducers/currenciesStatus.js
|
@ -116,7 +116,11 @@ class BannerItem extends PureComponent<{ |
|
|
render() { |
|
|
render() { |
|
|
const { item, t } = this.props |
|
|
const { item, t } = this.props |
|
|
return ( |
|
|
return ( |
|
|
<Box relative key={item.id} style={styles.banner}> |
|
|
<Box |
|
|
|
|
|
relative |
|
|
|
|
|
key={item.id} |
|
|
|
|
|
style={{ ...styles.banner, ...(item.warning ? styles.warning : null) }} |
|
|
|
|
|
> |
|
|
<CloseIcon onClick={this.dismiss} /> |
|
|
<CloseIcon onClick={this.dismiss} /> |
|
|
<Box horizontal flow={2}> |
|
|
<Box horizontal flow={2}> |
|
|
<IconTriangleWarning height={16} width={16} color="white" /> |
|
|
<IconTriangleWarning height={16} width={16} color="white" /> |
|
@ -159,8 +163,11 @@ const styles = { |
|
|
left: 32, |
|
|
left: 32, |
|
|
bottom: 32, |
|
|
bottom: 32, |
|
|
}, |
|
|
}, |
|
|
|
|
|
warning: { |
|
|
|
|
|
background: colors.orange, |
|
|
|
|
|
}, |
|
|
banner: { |
|
|
banner: { |
|
|
background: colors.alertRed, |
|
|
background: colors.warning, |
|
|
overflow: 'hidden', |
|
|
overflow: 'hidden', |
|
|
borderRadius: 4, |
|
|
borderRadius: 4, |
|
|
fontSize: 13, |
|
|
fontSize: 13, |
|
|
|
@ -15,6 +15,7 @@ export type CurrencyStatus = { |
|
|
message: string, |
|
|
message: string, |
|
|
link: string, |
|
|
link: string, |
|
|
nonce: number, |
|
|
nonce: number, |
|
|
|
|
|
warning?: boolean, // display as a warning
|
|
|
keepSync?: boolean, // even if something is happening, make live still stay in sync
|
|
|
keepSync?: boolean, // even if something is happening, make live still stay in sync
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|