Fix lint errors

feature/default_network_editable
Alexander Tseung 7 years ago
parent f38675c9ac
commit 2fd9e58e61
  1. 6
      ui/app/components/account-menu/index.js
  2. 2
      ui/app/components/pending-tx/confirm-send-ether.js
  3. 1
      ui/app/info.js
  4. 4
      ui/app/send-v2.js

@ -53,11 +53,6 @@ function mapDispatchToProps (dispatch) {
dispatch(actions.hideSidebar()) dispatch(actions.hideSidebar())
dispatch(actions.toggleAccountMenu()) dispatch(actions.toggleAccountMenu())
}, },
showNewAccountPage: (formToSelect) => {
dispatch(actions.showNewAccountPage(formToSelect))
dispatch(actions.hideSidebar())
dispatch(actions.toggleAccountMenu())
},
showInfoPage: () => { showInfoPage: () => {
dispatch(actions.showInfoPage()) dispatch(actions.showInfoPage())
dispatch(actions.hideSidebar()) dispatch(actions.hideSidebar())
@ -70,7 +65,6 @@ AccountMenu.prototype.render = function () {
const { const {
isAccountMenuOpen, isAccountMenuOpen,
toggleAccountMenu, toggleAccountMenu,
showNewAccountPage,
lockMetamask, lockMetamask,
history, history,
} = this.props } = this.props

@ -232,7 +232,7 @@ ConfirmSendEther.prototype.render = function () {
h('div.confirm-screen-wrapper.flex-column.flex-grow', [ h('div.confirm-screen-wrapper.flex-column.flex-grow', [
h('h3.flex-center.confirm-screen-header', [ h('h3.flex-center.confirm-screen-header', [
h('button.btn-clear.confirm-screen-back-button', { h('button.btn-clear.confirm-screen-back-button', {
onClick: () => editTransaction(txMeta), onClick: () => this.editTransaction(txMeta),
}, 'EDIT'), }, 'EDIT'),
h('div.confirm-screen-title', 'Confirm Transaction'), h('div.confirm-screen-title', 'Confirm Transaction'),
h('div.confirm-screen-header-tip'), h('div.confirm-screen-header-tip'),

@ -2,7 +2,6 @@ const inherits = require('util').inherits
const Component = require('react').Component const Component = require('react').Component
const h = require('react-hyperscript') const h = require('react-hyperscript')
const connect = require('react-redux').connect const connect = require('react-redux').connect
const actions = require('./actions')
module.exports = connect(mapStateToProps)(InfoScreen) module.exports = connect(mapStateToProps)(InfoScreen)

@ -659,7 +659,7 @@ SendTransactionScreen.prototype.onSubmit = function (event) {
selectedToken selectedToken
? signTokenTx(selectedToken.address, to, amount, txParams) ? signTokenTx(selectedToken.address, to, amount, txParams)
: signTx(txParams) : signTx(txParams)
this.props.history.push(CONFIRM_TRANSACTION_ROUTE)
} }
this.props.history.push(CONFIRM_TRANSACTION_ROUTE)
} }

Loading…
Cancel
Save