|
|
@ -385,6 +385,7 @@ SendTransactionScreen.prototype.renderFooter = function () { |
|
|
|
} = this.props |
|
|
|
} = this.props |
|
|
|
|
|
|
|
|
|
|
|
const noErrors = amountError === null && toError === null |
|
|
|
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', { |
|
|
@ -393,13 +394,7 @@ SendTransactionScreen.prototype.renderFooter = function () { |
|
|
|
goHome() |
|
|
|
goHome() |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, 'Cancel'), |
|
|
|
}, 'Cancel'), |
|
|
|
h(`button`, { |
|
|
|
h(`button.send-v2__next-btn${errorClass}`, { |
|
|
|
className: classnames({ |
|
|
|
|
|
|
|
'send-v2__next-btn': noErrors, |
|
|
|
|
|
|
|
'send-v2__next-btn__disabled': !noErrors, |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
disabled: !noErrors, |
|
|
|
|
|
|
|
onClick: event => this.onSubmit(event), |
|
|
|
|
|
|
|
}, 'Next'), |
|
|
|
}, 'Next'), |
|
|
|
]) |
|
|
|
]) |
|
|
|
} |
|
|
|
} |
|
|
|