From 882b00619cdbcf7c7696008f52d7c2b782a6e1cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Sun, 27 Jan 2019 15:48:52 +0100 Subject: [PATCH] add warning flag too --- src/components/CurrenciesStatusBanner.js | 11 +++++++++-- src/reducers/currenciesStatus.js | 1 + 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/CurrenciesStatusBanner.js b/src/components/CurrenciesStatusBanner.js index df9af8f2..e4c040b0 100644 --- a/src/components/CurrenciesStatusBanner.js +++ b/src/components/CurrenciesStatusBanner.js @@ -116,7 +116,11 @@ class BannerItem extends PureComponent<{ render() { const { item, t } = this.props return ( - + @@ -159,8 +163,11 @@ const styles = { left: 32, bottom: 32, }, + warning: { + background: colors.orange, + }, banner: { - background: colors.alertRed, + background: colors.warning, overflow: 'hidden', borderRadius: 4, fontSize: 13, diff --git a/src/reducers/currenciesStatus.js b/src/reducers/currenciesStatus.js index 6cd11071..b582fa87 100644 --- a/src/reducers/currenciesStatus.js +++ b/src/reducers/currenciesStatus.js @@ -15,6 +15,7 @@ export type CurrencyStatus = { message: string, link: string, nonce: number, + warning?: boolean, // display as a warning keepSync?: boolean, // even if something is happening, make live still stay in sync }