Adjust available labels (#2191)

This commit is contained in:
Jaco Greeff 2020-01-24 12:04:23 +01:00 committed by GitHub
parent cbda7616c8
commit e009258b77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View File

@ -43,7 +43,7 @@ function PreImage ({ className, onClose }: Props): React.ReactElement<Props> {
<InputAddress
help={t('The account you want to register the preimage from')}
label={t('send from account')}
labelExtra={<Available label={t('transferrable')} params={accountId} />}
labelExtra={<Available label={<span className='label'>{t('transferrable')}</span>} params={accountId} />}
onChange={setAccountId}
type='account'
/>

View File

@ -35,7 +35,7 @@ export default function Propose ({ className, onClose }: Props): React.ReactElem
<InputAddress
help={t('The account you want to register the proposal from')}
label={t('send from account')}
labelExtra={<Available label={t('transferrable')} params={accountId} />}
labelExtra={<Available label={<span className='label'>{t('transferrable')}</span>} params={accountId} />}
onChange={setAccountId}
type='account'
/>

View File

@ -90,7 +90,6 @@ class BondExtra extends TxComponent<Props, State> {
private renderContent (): React.ReactNode {
const { stashId, systemChain, t } = this.props;
const { amountError, maxAdditional, maxBalance } = this.state;
const transferrable = <span className='label'>{t('transferrable')}</span>;
const isUnsafeChain = detectUnsafe(systemChain);
return (
@ -100,7 +99,7 @@ class BondExtra extends TxComponent<Props, State> {
defaultValue={stashId}
isDisabled
label={t('stash account')}
labelExtra={<Available label={transferrable} params={stashId} />}
labelExtra={<Available label={<span className='label'>{t('transferrable')}</span>} params={stashId} />}
/>
<InputBalance
autoFocus