Revert .gtn(-1), update api (#1244)

* Revert .gtn(-1), update api

* Signer header (minor)

* Bump to current deps
This commit is contained in:
Jaco Greeff 2019-05-30 18:07:42 +02:00 committed by GitHub
parent d8661ee630
commit 334b2db472
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 16 deletions

View File

@ -64,13 +64,13 @@ class AddressInfo extends React.PureComponent<Props> {
return (
<div className='column'>
{balanceDisplay.free && balances_all.freeBalance.gtn(-1) && (
{balanceDisplay.free && (
<>
<Label label={t('total')} />
<div className='result'>{formatBalance(balances_all.freeBalance)}</div>
</>
)}
{balanceDisplay.available && balances_all.availableBalance.gtn(-1) && (
{balanceDisplay.available && (
<>
<Label label={t('available')} />
<div className='result'>{formatBalance(balances_all.availableBalance)}</div>
@ -121,7 +121,7 @@ class AddressInfo extends React.PureComponent<Props> {
return (
<div className='column'>
{extendedDisplay.nonce && balances_all.accountNonce.gtn(-1) && (
{extendedDisplay.nonce && (
<>
<Label label={t('transactions')} />
<div className='result'>{formatNumber(balances_all.accountNonce)}</div>
@ -144,17 +144,17 @@ class AddressInfo extends React.PureComponent<Props> {
const { staking_info, t } = this.props;
return (staking_info && staking_info.controllerId && (
<TxButton
accountId={staking_info.controllerId.toString()}
className='iconButton'
icon='lock'
size='small'
isPrimary
key='unlock'
params={[]}
tooltip={t('Redeem these funds')}
tx='staking.withdrawUnbonded'
/>
<TxButton
accountId={staking_info.controllerId.toString()}
className='iconButton'
icon='lock'
size='small'
isPrimary
key='unlock'
params={[]}
tooltip={t('Redeem these funds')}
tx='staking.withdrawUnbonded'
/>
));
}

View File

@ -116,6 +116,10 @@
font-weight: normal;
line-height: 1.25rem;
padding: 1rem 1.5rem;
> label {
margin-top: 0.5rem;
}
}
> :first-child:not(.icon) {

View File

@ -32,11 +32,11 @@ class Transaction extends React.PureComponent<Props> {
<>
<Modal.Header>
{section}.{method}
<label>{
<label><details><summary>{
meta && meta.documentation
? meta.documentation.join(' ')
: ''
}</label>
}</summary></details></label>
</Modal.Header>
<Modal.Content className='ui--signer-Signer-Content'>
{this.renderAccount()}