mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-13 03:21:02 +00:00
Show substrate logo for node-substrate (#59)
This commit is contained in:
@@ -32,14 +32,11 @@
|
||||
}
|
||||
|
||||
.Chains-fork-me .Icon {
|
||||
font-size: 24px;
|
||||
font-size: 28px;
|
||||
margin: 0;
|
||||
height: 24px;
|
||||
width: 24px;
|
||||
background: #3c3c3b;
|
||||
border: 2px solid #3c3c3b;
|
||||
border-radius: 24px;
|
||||
color: #ccc;
|
||||
height: 28px;
|
||||
width: 28px;
|
||||
color: #3c3c3b;
|
||||
}
|
||||
|
||||
.Chains-node-count {
|
||||
|
||||
@@ -22,6 +22,7 @@ import cpuIcon from '../../icons/microchip-solid.svg';
|
||||
import memoryIcon from '../../icons/memory-solid.svg';
|
||||
|
||||
import parityPolkadotIcon from '../../icons/dot.svg';
|
||||
import paritySubstrateIcon from '../../icons/parity-substrate.svg';
|
||||
import unknownImplementationIcon from '../../icons/question-solid.svg';
|
||||
|
||||
import './Row.css';
|
||||
@@ -83,7 +84,9 @@ export default class Row extends React.Component<RowProps, {}> {
|
||||
render: ({ nodeDetails }) => {
|
||||
const [, implementation, version] = nodeDetails;
|
||||
const [semver] = version.match(SEMVER_PATTERN) || [version];
|
||||
const implIcon = implementation === 'parity-polkadot' ? parityPolkadotIcon : unknownImplementationIcon;
|
||||
const implIcon = implementation === 'parity-polkadot' ? parityPolkadotIcon
|
||||
: implementation === 'substrate-node' ? paritySubstrateIcon
|
||||
: unknownImplementationIcon;
|
||||
|
||||
return <span title={`${implementation} v${version}`}><Icon src={implIcon} /> {semver}</span>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user