Browse Source

feat(home): disable submit when unlocking wallet

next
Tom Kirkpatrick 6 years ago
parent
commit
65fd073278
No known key found for this signature in database GPG Key ID: 72203A8EC5967EA8
  1. 4
      app/components/Home/WalletUnlocker.js

4
app/components/Home/WalletUnlocker.js

@ -95,7 +95,7 @@ class WalletUnlocker extends React.Component {
} }
render = () => { render = () => {
const { intl, wallet } = this.props const { intl, unlockingWallet, wallet } = this.props
const walletName = this.walletName(wallet) const walletName = this.walletName(wallet)
return ( return (
@ -121,7 +121,7 @@ class WalletUnlocker extends React.Component {
validateOnChange={formState.invalid} validateOnChange={formState.invalid}
/> />
<Button type="submit"> <Button type="submit" disable={unlockingWallet} processing={unlockingWallet}>
<FormattedMessage {...messages.wallet_unlocker_button_label} /> <FormattedMessage {...messages.wallet_unlocker_button_label} />
</Button> </Button>
</React.Fragment> </React.Fragment>

Loading…
Cancel
Save