Adjust available labels (#2191)
This commit is contained in:
parent
cbda7616c8
commit
e009258b77
@ -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'
|
||||
/>
|
||||
|
||||
@ -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'
|
||||
/>
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user