From 5893f2fd19bdab10a017c56202f5fe0cf440d29e Mon Sep 17 00:00:00 2001 From: sdtsui Date: Tue, 22 Aug 2017 15:22:00 -0700 Subject: Add data field to send token screen --- ui/app/send.js | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/ui/app/send.js b/ui/app/send.js index 02a38deaf..ef4e92e26 100644 --- a/ui/app/send.js +++ b/ui/app/send.js @@ -53,6 +53,8 @@ function SendTransactionScreen () { amount: '0.0001', // see L544 gasPrice: '4a817c800', gas: '0x7b0d', + txData: null, + memo: '', }, } } @@ -220,7 +222,38 @@ SendTransactionScreen.prototype.render = function () { h('div', {}, ['Transaction memo (optional)']), - h('input.large-input.send-screen-input', {}, [ + h('input.large-input.send-screen-input', { + onChange: () => { + this.setState({ + newTx: Object.assign( + this.state.newTx, + { + memo: event.target.value, + } + ), + }) + }, + }, [ + ]), + + ]), + + h('div.send-screen-input-wrapper', {}, [ + + h('div', {}, ['Data (optional)']), + + h('input.large-input.send-screen-input', { + onChange: () => { + this.setState({ + newTx: Object.assign( + this.state.newTx, + { + txData: event.target.value, + } + ), + }) + }, + }, [ ]), ]), -- cgit