From a08c3bc01b11fbd0e3a243359befbe9fc909edf4 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Tue, 21 Jun 2016 13:18:32 -0700 Subject: Auto linted --- ui/app/send.js | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'ui/app/send.js') diff --git a/ui/app/send.js b/ui/app/send.js index ba4e5bfff..a5a9d69f1 100644 --- a/ui/app/send.js +++ b/ui/app/send.js @@ -13,7 +13,7 @@ const ethUtil = require('ethereumjs-util') module.exports = connect(mapStateToProps)(SendTransactionScreen) -function mapStateToProps(state) { +function mapStateToProps (state) { var result = { address: state.metamask.selectedAccount, accounts: state.metamask.accounts, @@ -31,11 +31,11 @@ function mapStateToProps(state) { } inherits(SendTransactionScreen, Component) -function SendTransactionScreen() { +function SendTransactionScreen () { Component.call(this) } -SendTransactionScreen.prototype.render = function() { +SendTransactionScreen.prototype.render = function () { var state = this.props var address = state.address var account = state.account @@ -111,7 +111,7 @@ SendTransactionScreen.prototype.render = function() { // h('div', formatBalance(account && account.balance)), h(EtherBalance, { value: account && account.balance, - }) + }), ]), @@ -140,7 +140,7 @@ SendTransactionScreen.prototype.render = function() { h('input.large-input', { name: 'address', placeholder: 'Recipient Address', - }) + }), ]), // 'amount' and send button @@ -160,7 +160,7 @@ SendTransactionScreen.prototype.render = function() { style: { textTransform: 'uppercase', }, - }, 'Send') + }, 'Send'), ]), @@ -187,7 +187,7 @@ SendTransactionScreen.prototype.render = function() { style: { width: '100%', resize: 'none', - } + }, }), ]), @@ -196,18 +196,17 @@ SendTransactionScreen.prototype.render = function() { ) } -SendTransactionScreen.prototype.navigateToAccounts = function(event){ +SendTransactionScreen.prototype.navigateToAccounts = function (event) { event.stopPropagation() this.props.dispatch(actions.showAccountsPage()) } -SendTransactionScreen.prototype.back = function() { +SendTransactionScreen.prototype.back = function () { var address = this.props.address this.props.dispatch(actions.backToAccountDetail(address)) } -SendTransactionScreen.prototype.onSubmit = function() { - +SendTransactionScreen.prototype.onSubmit = function () { const recipient = document.querySelector('input[name="address"]').value const input = document.querySelector('input[name="amount"]').value const value = util.normalizeEthStringToWei(input) -- cgit