From 04ab7305c56d6396f198ffddcc423f01e69b0c97 Mon Sep 17 00:00:00 2001 From: Amaury Martiny Date: Mon, 14 May 2018 15:47:18 +0200 Subject: [PATCH 1/2] Add node health info --- package.json | 2 +- src/App/App.js | 2 ++ src/Health/Health.css | 28 +++++++++++++++ src/Health/Health.js | 81 +++++++++++++++++++++++++++++++++++++++++++ src/Health/index.js | 8 +++++ src/Tokens/Tokens.js | 43 ++--------------------- yarn.lock | 4 +-- 7 files changed, 124 insertions(+), 44 deletions(-) create mode 100644 src/Health/Health.css create mode 100644 src/Health/Health.js create mode 100644 src/Health/index.js diff --git a/package.json b/package.json index 1a447273..20f1fa6b 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ }, "dependencies": { "@parity/api": "^2.1.22", - "@parity/light.js": "https://github.com/parity-js/light.js#f62bb37782ed32eb74a8bb0cc428632d3a8c6d45", + "@parity/light.js": "https://github.com/parity-js/light.js#c531c68b5268a1bf7aba1f43424f440b2bde7828", "axios": "^0.18.0", "electron": "^2.0.0", "electron-dl": "^1.11.0", diff --git a/src/App/App.js b/src/App/App.js index 795d191e..195acad9 100644 --- a/src/App/App.js +++ b/src/App/App.js @@ -7,6 +7,7 @@ import React, { Component } from 'react'; import { BrowserRouter, MemoryRouter, Route, Link } from 'react-router-dom'; import CreateAccount from '../Accounts/CreateAccount'; +import Health from '../Health'; import Loading from '../Loading'; import ProtectedRoute from './ProtectedRoute'; import Receive from '../Receive'; @@ -42,6 +43,7 @@ class App extends Component {