// Copyright 2017-2019 @polkadot/ui-app 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 React from 'react'; import { withCalls } from '@polkadot/ui-api'; import { classes } from './util'; import { AddressSummary, Props } from './AddressSummary'; import translate from './translate'; class AddressRow extends AddressSummary { render () { const { className, style, identIconSize = 64, value } = this.props; return (
{this.renderIcon('ui--AddressRow-icon', identIconSize)}
{this.renderAddress()} {this.renderBalance()} {this.renderBonded()} {this.renderNonce()}
{this.renderChildren()}
); } } export default translate( withCalls( ['derive.accounts.idAndIndex', { paramName: 'value' }], 'query.session.validators' )(AddressRow) );