Misc. small UI fixes (#4657)
* Shorten menu items (accounts) * Shorten menu items (addresses) * Shorten menu items (contracts) * Shorten menu items (account) * Shorten menu items (address) * Shorten menu items (contract) * Auto-focus & perform default action * Auto-focus & default action * Auto focus for first fields (create account) * Clear phrase & auto-focus field * Auto-focus name fields * Add autoFocus (Add Address) * autoFocus address (Add Contract) * Auto focus name field * Auto-focus name field for EditMeta * Auto-focus modifications (WalletSettings) * Verification auto focus * typo * Double-up on keys
This commit is contained in:
@@ -47,6 +47,7 @@ export default class WalletDetails extends Component {
|
||||
return (
|
||||
<Form>
|
||||
<InputAddress
|
||||
autoFocus
|
||||
hint={
|
||||
<FormattedMessage
|
||||
id='createWallet.details.address.hint'
|
||||
@@ -110,26 +111,8 @@ export default class WalletDetails extends Component {
|
||||
|
||||
return (
|
||||
<Form>
|
||||
<AddressSelect
|
||||
accounts={ _accounts }
|
||||
error={ errors.account }
|
||||
hint={
|
||||
<FormattedMessage
|
||||
id='createWallet.details.ownerMulti.hint'
|
||||
defaultMessage='the owner account for this contract'
|
||||
/>
|
||||
}
|
||||
label={
|
||||
<FormattedMessage
|
||||
id='createWallet.details.ownerMulti.label'
|
||||
defaultMessage='from account (contract owner)'
|
||||
/>
|
||||
}
|
||||
value={ wallet.account }
|
||||
onChange={ this.onAccoutChange }
|
||||
/>
|
||||
|
||||
<Input
|
||||
autoFocus
|
||||
error={ errors.name }
|
||||
hint={
|
||||
<FormattedMessage
|
||||
@@ -164,6 +147,25 @@ export default class WalletDetails extends Component {
|
||||
onChange={ this.onDescriptionChange }
|
||||
/>
|
||||
|
||||
<AddressSelect
|
||||
accounts={ _accounts }
|
||||
error={ errors.account }
|
||||
hint={
|
||||
<FormattedMessage
|
||||
id='createWallet.details.ownerMulti.hint'
|
||||
defaultMessage='the owner account for this contract'
|
||||
/>
|
||||
}
|
||||
label={
|
||||
<FormattedMessage
|
||||
id='createWallet.details.ownerMulti.label'
|
||||
defaultMessage='from account (contract owner)'
|
||||
/>
|
||||
}
|
||||
value={ wallet.account }
|
||||
onChange={ this.onAccoutChange }
|
||||
/>
|
||||
|
||||
<TypedInput
|
||||
accounts={ accounts }
|
||||
label={
|
||||
|
||||
Reference in New Issue
Block a user