diff options
author | Frankie <frankie.pangilinan@consensys.net> | 2016-08-26 07:06:54 +0800 |
---|---|---|
committer | Frankie <frankie.pangilinan@consensys.net> | 2016-08-26 07:06:54 +0800 |
commit | 547894ed391f2d258c46ff382d4b211d18d81a7b (patch) | |
tree | 9425bee50dae3f6d254462363b5f60b837cb2e27 /ui/app/send.js | |
parent | 250cf8cc23305e33f4fc26a1711996ebc54fd9ad (diff) | |
parent | 78f73038e789f4483f728a7cc9ea1c68b0b3d7fa (diff) | |
download | tangerine-wallet-browser-547894ed391f2d258c46ff382d4b211d18d81a7b.tar tangerine-wallet-browser-547894ed391f2d258c46ff382d4b211d18d81a7b.tar.gz tangerine-wallet-browser-547894ed391f2d258c46ff382d4b211d18d81a7b.tar.bz2 tangerine-wallet-browser-547894ed391f2d258c46ff382d4b211d18d81a7b.tar.lz tangerine-wallet-browser-547894ed391f2d258c46ff382d4b211d18d81a7b.tar.xz tangerine-wallet-browser-547894ed391f2d258c46ff382d4b211d18d81a7b.tar.zst tangerine-wallet-browser-547894ed391f2d258c46ff382d4b211d18d81a7b.zip |
Merge branch 'master' into i#563forgotPassword
Diffstat (limited to 'ui/app/send.js')
-rw-r--r-- | ui/app/send.js | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/ui/app/send.js b/ui/app/send.js index 06ea199f4..0cc3a032f 100644 --- a/ui/app/send.js +++ b/ui/app/send.js @@ -1,5 +1,5 @@ const inherits = require('util').inherits -const Component = require('react').Component +const PersistentForm = require('../lib/persistent-form') const h = require('react-hyperscript') const connect = require('react-redux').connect const Identicon = require('./components/identicon') @@ -29,12 +29,14 @@ function mapStateToProps (state) { return result } -inherits(SendTransactionScreen, Component) +inherits(SendTransactionScreen, PersistentForm) function SendTransactionScreen () { - Component.call(this) + PersistentForm.call(this) } SendTransactionScreen.prototype.render = function () { + this.persistentFormParentId = 'send-tx-form' + var state = this.props var address = state.address var account = state.account @@ -137,6 +139,9 @@ SendTransactionScreen.prototype.render = function () { h('input.large-input', { name: 'address', placeholder: 'Recipient Address', + dataset: { + persistentFormId: 'recipient-address', + }, }), ]), @@ -150,6 +155,9 @@ SendTransactionScreen.prototype.render = function () { style: { marginRight: 6, }, + dataset: { + persistentFormId: 'tx-amount', + }, }), h('button.primary', { @@ -185,11 +193,12 @@ SendTransactionScreen.prototype.render = function () { width: '100%', resize: 'none', }, + dataset: { + persistentFormId: 'tx-data', + }, }), ]), - ]) - ) } |