@@ -94,8 +94,8 @@ function Status ({ className = '', upgradeStore }, { api }) {
/>
-
+
);
}
diff --git a/js/src/SyncWarning/index.js b/js/src/SyncWarning/index.js
index 098605b2a..70c370d07 100644
--- a/js/src/SyncWarning/index.js
+++ b/js/src/SyncWarning/index.js
@@ -14,4 +14,4 @@
// You should have received a copy of the GNU General Public License
// along with Parity. If not, see .
-export default, { showSyncWarning } from './syncWarning';
+export default from './syncWarning';
diff --git a/js/src/SyncWarning/syncWarning.css b/js/src/SyncWarning/syncWarning.css
index 5280ecc68..ee5eb9008 100644
--- a/js/src/SyncWarning/syncWarning.css
+++ b/js/src/SyncWarning/syncWarning.css
@@ -36,7 +36,3 @@
margin: 0.5em 0;
}
}
-
-.status {
- font-size: 4rem;
-}
diff --git a/js/src/SyncWarning/syncWarning.js b/js/src/SyncWarning/syncWarning.js
index a5d8afb6e..1f601d01f 100644
--- a/js/src/SyncWarning/syncWarning.js
+++ b/js/src/SyncWarning/syncWarning.js
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with Parity. If not, see .
-import React, { Component } from 'react';
+import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
@@ -22,47 +22,38 @@ import StatusIndicator from '@parity/ui/StatusIndicator';
import styles from './syncWarning.css';
-class SyncWarning extends Component {
- static propTypes = {
- className: PropTypes.string,
- isOk: PropTypes.bool.isRequired,
- health: PropTypes.object.isRequired
- };
+function SyncWarning ({ className, isOk, health }) {
+ console.log('SyncWarning', isOk, health);
- render () {
- const { className, isOk, health } = this.props;
-
- if (isOk) {
- return null;
- }
-
- return (
-