// Copyright 2017-2019 @polkadot/apps authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { BareProps } from '@polkadot/ui-app/types'; import React from 'react'; import { BestNumber, Chain, NodeName, NodeVersion } from '@polkadot/ui-reactive/index'; type Props = BareProps & {}; const pkgJson = require('../package.json'); const [major, minor, patch] = pkgJson.version.split('.'); export default class NodeInfo extends React.PureComponent { render () { return (
 
 
polkadot-js-ui v{major}.{minor}.{parseInt(patch, 10) + 1}
); } }