1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

clean - appease the linting machine

This commit is contained in:
kumavis 2016-06-24 17:27:42 -07:00
parent d7d440b2c2
commit 770528d538
3 changed files with 9 additions and 28 deletions

View File

@ -4,7 +4,6 @@ const unmountComponentAtNode = require('react-dom').unmountComponentAtNode
const findDOMNode = require('react-dom').findDOMNode const findDOMNode = require('react-dom').findDOMNode
const render = require('react-dom').render const render = require('react-dom').render
const h = require('react-hyperscript') const h = require('react-hyperscript')
const uiUtils = require('../../../ui/app/util')
const PendingTxDetails = require('../../../ui/app/components/pending-tx-details') const PendingTxDetails = require('../../../ui/app/components/pending-tx-details')
const PendingMsgDetails = require('../../../ui/app/components/pending-msg-details') const PendingMsgDetails = require('../../../ui/app/components/pending-msg-details')
const MetaMaskUiCss = require('../../../ui/css') const MetaMaskUiCss = require('../../../ui/css')

View File

@ -14,11 +14,6 @@ PendingMsg.prototype.render = function () {
var state = this.props var state = this.props
var msgData = state.txData var msgData = state.txData
var msgParams = msgData.msgParams || {}
var address = msgParams.from || state.selectedAddress
var identity = state.identities[address] || { address: address }
var account = state.accounts[address] || { address: address }
return ( return (
h('div', { h('div', {
@ -46,7 +41,7 @@ PendingMsg.prototype.render = function () {
}, 'Sign'), }, 'Sign'),
]), ]),
]) ])
) )
} }

View File

@ -15,11 +15,6 @@ PendingTx.prototype.render = function () {
var state = this.props var state = this.props
var txData = state.txData var txData = state.txData
var txParams = txData.txParams || {}
var address = txParams.from || state.selectedAddress
var identity = state.identities[address] || { address: address }
var account = state.accounts[address] || { address: address }
return ( return (
h('div', { h('div', {
@ -38,25 +33,17 @@ PendingTx.prototype.render = function () {
h(PendingTxDetails, state), h(PendingTxDetails, state),
// send + cancel // send + cancel
actionButtons(state), h('.flex-row.flex-space-around', [
h('button', {
onClick: state.cancelTransaction,
}, 'Cancel'),
h('button', {
onClick: state.sendTransaction,
}, 'Send'),
]),
]) ])
) )
} }
function actionButtons(state){
return (
h('.flex-row.flex-space-around', [
h('button', {
onClick: state.cancelTransaction,
}, 'Cancel'),
h('button', {
onClick: state.sendTransaction,
}, 'Send'),
])
)
}