|
|
@ -382,7 +382,14 @@ SendTransactionScreen.prototype.renderForm = function () { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
SendTransactionScreen.prototype.renderFooter = function () { |
|
|
|
SendTransactionScreen.prototype.renderFooter = function () { |
|
|
|
const { goHome, clearSend } = this.props |
|
|
|
const { |
|
|
|
|
|
|
|
goHome, |
|
|
|
|
|
|
|
clearSend, |
|
|
|
|
|
|
|
errors: { amount: amountError, to: toError } |
|
|
|
|
|
|
|
} = this.props |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const noErrors = amountError === null && toError === null |
|
|
|
|
|
|
|
const errorClass = noErrors ? '' : '__disabled' |
|
|
|
|
|
|
|
|
|
|
|
return h('div.send-v2__footer', [ |
|
|
|
return h('div.send-v2__footer', [ |
|
|
|
h('button.send-v2__cancel-btn', { |
|
|
|
h('button.send-v2__cancel-btn', { |
|
|
@ -391,8 +398,8 @@ SendTransactionScreen.prototype.renderFooter = function () { |
|
|
|
goHome() |
|
|
|
goHome() |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, 'Cancel'), |
|
|
|
}, 'Cancel'), |
|
|
|
h('button.send-v2__next-btn', { |
|
|
|
h(`button.send-v2__next-btn${errorClass}`, { |
|
|
|
onClick: event => this.onSubmit(event), |
|
|
|
onClick: event => noErrors && this.onSubmit(event), |
|
|
|
}, 'Next'), |
|
|
|
}, 'Next'), |
|
|
|
]) |
|
|
|
]) |
|
|
|
} |
|
|
|
} |
|
|
|