aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsdtsui <szehungdanieltsui@gmail.com>2017-07-30 11:55:55 +0800
committersdtsui <szehungdanieltsui@gmail.com>2017-07-30 11:55:55 +0800
commit35ff4c195c4ff91a90b7572f07060b0213898f22 (patch)
treee5425652fad6fe396af5fc526693a2ea03200942
parent8ace4710ffa1ca56e59e5888fd076fecfae8a911 (diff)
downloadtangerine-wallet-browser-35ff4c195c4ff91a90b7572f07060b0213898f22.tar.gz
tangerine-wallet-browser-35ff4c195c4ff91a90b7572f07060b0213898f22.tar.zst
tangerine-wallet-browser-35ff4c195c4ff91a90b7572f07060b0213898f22.zip
[WIP] Isolate form logic from rest of confirmation UI
-rw-r--r--ui/app/components/pending-tx.js49
1 files changed, 27 insertions, 22 deletions
diff --git a/ui/app/components/pending-tx.js b/ui/app/components/pending-tx.js
index 5324ccd64..2414a9759 100644
--- a/ui/app/components/pending-tx.js
+++ b/ui/app/components/pending-tx.js
@@ -75,11 +75,8 @@ PendingTx.prototype.render = function () {
key: txMeta.id,
}, [
- h('form#pending-tx-form', {
- onSubmit: this.onSubmit.bind(this),
-
+ h('div', {
}, [
-
// tx info
h('div', [
@@ -305,24 +302,32 @@ PendingTx.prototype.render = function () {
}, 'Buy Ether')
: null,
- h('button', {
- onClick: (event) => {
- this.resetGasFields()
- event.preventDefault()
- },
- }, 'Reset'),
-
- // Accept Button
- h('input.confirm.btn-green', {
- type: 'submit',
- value: 'SUBMIT',
- style: { marginLeft: '10px' },
- disabled: insufficientBalance || !this.state.valid || !isValidAddress || this.state.submitting,
- }),
-
- h('button.cancel.btn-red', {
- onClick: props.cancelTransaction,
- }, 'Reject'),
+
+ h('form#pending-tx-form', {
+ onSubmit: this.onSubmit.bind(this),
+ }, [
+ // Reset Button
+ h('button', {
+ onClick: (event) => {
+ this.resetGasFields()
+ event.preventDefault()
+ },
+ }, 'Reset'),
+
+ // Accept Button
+ h('input.confirm.btn-green', {
+ type: 'submit',
+ value: 'SUBMIT',
+ style: { marginLeft: '10px' },
+ disabled: insufficientBalance || !this.state.valid || !isValidAddress || this.state.submitting,
+ }),
+
+ // Cancel Button
+ h('button.cancel.btn-red', {
+ onClick: props.cancelTransaction,
+ }, 'Reject'),
+ ]),
+
]),
]),
])