aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@gmail.com>2018-02-02 06:13:08 +0800
committerAlexander Tseung <alextsg@gmail.com>2018-02-02 06:13:08 +0800
commit2fd9e58e612e9fe341c9107a677238a566e3c1b8 (patch)
treee94a378e218d002ce9fd29ad2e5af7daf3fc448f
parentf38675c9ac99d966b39e3faccd2bf8d7facea9dc (diff)
downloadtangerine-wallet-browser-2fd9e58e612e9fe341c9107a677238a566e3c1b8.tar
tangerine-wallet-browser-2fd9e58e612e9fe341c9107a677238a566e3c1b8.tar.gz
tangerine-wallet-browser-2fd9e58e612e9fe341c9107a677238a566e3c1b8.tar.bz2
tangerine-wallet-browser-2fd9e58e612e9fe341c9107a677238a566e3c1b8.tar.lz
tangerine-wallet-browser-2fd9e58e612e9fe341c9107a677238a566e3c1b8.tar.xz
tangerine-wallet-browser-2fd9e58e612e9fe341c9107a677238a566e3c1b8.tar.zst
tangerine-wallet-browser-2fd9e58e612e9fe341c9107a677238a566e3c1b8.zip
Fix lint errors
-rw-r--r--ui/app/components/account-menu/index.js6
-rw-r--r--ui/app/components/pending-tx/confirm-send-ether.js2
-rw-r--r--ui/app/info.js1
-rw-r--r--ui/app/send-v2.js4
4 files changed, 3 insertions, 10 deletions
diff --git a/ui/app/components/account-menu/index.js b/ui/app/components/account-menu/index.js
index ddb751a64..e9ae61735 100644
--- a/ui/app/components/account-menu/index.js
+++ b/ui/app/components/account-menu/index.js
@@ -53,11 +53,6 @@ function mapDispatchToProps (dispatch) {
dispatch(actions.hideSidebar())
dispatch(actions.toggleAccountMenu())
},
- showNewAccountPage: (formToSelect) => {
- dispatch(actions.showNewAccountPage(formToSelect))
- dispatch(actions.hideSidebar())
- dispatch(actions.toggleAccountMenu())
- },
showInfoPage: () => {
dispatch(actions.showInfoPage())
dispatch(actions.hideSidebar())
@@ -70,7 +65,6 @@ AccountMenu.prototype.render = function () {
const {
isAccountMenuOpen,
toggleAccountMenu,
- showNewAccountPage,
lockMetamask,
history,
} = this.props
diff --git a/ui/app/components/pending-tx/confirm-send-ether.js b/ui/app/components/pending-tx/confirm-send-ether.js
index e63415194..a2d6adcd0 100644
--- a/ui/app/components/pending-tx/confirm-send-ether.js
+++ b/ui/app/components/pending-tx/confirm-send-ether.js
@@ -232,7 +232,7 @@ ConfirmSendEther.prototype.render = function () {
h('div.confirm-screen-wrapper.flex-column.flex-grow', [
h('h3.flex-center.confirm-screen-header', [
h('button.btn-clear.confirm-screen-back-button', {
- onClick: () => editTransaction(txMeta),
+ onClick: () => this.editTransaction(txMeta),
}, 'EDIT'),
h('div.confirm-screen-title', 'Confirm Transaction'),
h('div.confirm-screen-header-tip'),
diff --git a/ui/app/info.js b/ui/app/info.js
index 92cc80c20..17e1ecbb4 100644
--- a/ui/app/info.js
+++ b/ui/app/info.js
@@ -2,7 +2,6 @@ const inherits = require('util').inherits
const Component = require('react').Component
const h = require('react-hyperscript')
const connect = require('react-redux').connect
-const actions = require('./actions')
module.exports = connect(mapStateToProps)(InfoScreen)
diff --git a/ui/app/send-v2.js b/ui/app/send-v2.js
index 5eb90143e..7cee46c9c 100644
--- a/ui/app/send-v2.js
+++ b/ui/app/send-v2.js
@@ -659,7 +659,7 @@ SendTransactionScreen.prototype.onSubmit = function (event) {
selectedToken
? signTokenTx(selectedToken.address, to, amount, txParams)
: signTx(txParams)
-
- this.props.history.push(CONFIRM_TRANSACTION_ROUTE)
}
+
+ this.props.history.push(CONFIRM_TRANSACTION_ROUTE)
}