Fix network ID and validator icons (#189)

* fix: Validator icons

* fix: Propagation time for blocks < highest

* fix: Reintroduce network_id to Rust backend
This commit is contained in:
Maciej Hirsz
2019-11-08 13:36:19 +01:00
committed by GitHub
parent a3b6f6a5a1
commit adbd7cb592
11 changed files with 380 additions and 330 deletions
@@ -1,11 +1,10 @@
import * as React from 'react';
import Identicon from 'polkadot-identicon';
import { Types, Maybe, timestamp } from '@dotstats/common';
import { formatNumber, getHashData, milliOrSecond, secondsWithPrecision } from '../../utils';
import { State as AppState, Node } from '../../state';
import { PersistentSet } from '../../persist';
import { Truncate } from './';
import { Ago, Icon, Tooltip, Sparkline } from '../';
import { Ago, Icon, Tooltip, Sparkline, PolkadotIcon } from '../';
import nodeIcon from '../../icons/server.svg';
import nodeLocationIcon from '../../icons/location.svg';
@@ -150,7 +149,7 @@ export class Row extends React.Component<Row.Props, Row.State> {
width: 16,
setting: 'validator',
render: ({ validator }) => {
return validator ? <Tooltip text={validator} copy={true}><span className="Row-validator"><Identicon account={validator} size={16} /></span></Tooltip> : '-';
return validator ? <Tooltip text={validator} copy={true}><span className="Row-validator"><PolkadotIcon account={validator} size={16} /></span></Tooltip> : '-';
}
},
{