* Split ui-api, update API version * Update (awaiting API changes to go through) * Cleanup ui-api exports * Bump API (SubscriptionPromise support) * Linting fixes * Update renames * Do display balances.Transfer (shows for non-owned accounts) * Bump API
33 lines
987 B
TypeScript
33 lines
987 B
TypeScript
// 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<Props> {
|
|
render () {
|
|
return (
|
|
<div className='apps--NodeInfo'>
|
|
<div className='apps--NodeInfo-inline'>
|
|
<Chain />
|
|
<BestNumber label='#' />
|
|
</div>
|
|
<div className='apps--NodeInfo-inline'>
|
|
<NodeName />
|
|
<NodeVersion label='v' />
|
|
</div>
|
|
<div>polkadot-js-ui v{major}.{minor}.{parseInt(patch, 10) + 1}</div>
|
|
</div>
|
|
);
|
|
}
|
|
}
|