aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/send-v2.js
diff options
context:
space:
mode:
authorChi Kei Chan <chikeichan@gmail.com>2017-11-03 06:20:29 +0800
committerGitHub <noreply@github.com>2017-11-03 06:20:29 +0800
commit9f70762434deb1c973665a76623838289e655f22 (patch)
tree738fccaff1c153c72aea0d0699ddfec0b4c097c7 /ui/app/send-v2.js
parentdc0b3255cf908320b5b46f02765ea03b5b4db6b7 (diff)
parentacc973d543ac65f8db980c0007c248c509345411 (diff)
downloadtangerine-wallet-browser-9f70762434deb1c973665a76623838289e655f22.tar
tangerine-wallet-browser-9f70762434deb1c973665a76623838289e655f22.tar.gz
tangerine-wallet-browser-9f70762434deb1c973665a76623838289e655f22.tar.bz2
tangerine-wallet-browser-9f70762434deb1c973665a76623838289e655f22.tar.lz
tangerine-wallet-browser-9f70762434deb1c973665a76623838289e655f22.tar.xz
tangerine-wallet-browser-9f70762434deb1c973665a76623838289e655f22.tar.zst
tangerine-wallet-browser-9f70762434deb1c973665a76623838289e655f22.zip
Merge pull request #2530 from MetaMask/uat
Merge uat into NewUI-flat
Diffstat (limited to 'ui/app/send-v2.js')
-rw-r--r--ui/app/send-v2.js16
1 files changed, 4 insertions, 12 deletions
diff --git a/ui/app/send-v2.js b/ui/app/send-v2.js
index e772477ae..6ce3e1b70 100644
--- a/ui/app/send-v2.js
+++ b/ui/app/send-v2.js
@@ -1,8 +1,6 @@
const { inherits } = require('util')
const PersistentForm = require('../lib/persistent-form')
const h = require('react-hyperscript')
-const connect = require('react-redux').connect
-const classnames = require('classnames')
const Identicon = require('./components/identicon')
const FromDropdown = require('./components/send/from-dropdown')
@@ -13,12 +11,9 @@ const GasFeeDisplay = require('./components/send/gas-fee-display-v2')
const { MIN_GAS_TOTAL } = require('./components/send/send-constants')
-const { showModal } = require('./actions')
-
const {
multiplyCurrencies,
conversionGreaterThan,
- addCurrencies,
} = require('./conversion-util')
const {
isBalanceSufficient,
@@ -99,7 +94,7 @@ SendTransactionScreen.prototype.renderHeaderIcon = function () {
diameter: 40,
address: selectedToken.address,
})
- : h('img.send-v2__send-header-icon', { src: '../images/eth_logo.svg' })
+ : h('img.send-v2__send-header-icon', { src: '../images/eth_logo.svg' }),
])
}
@@ -140,12 +135,12 @@ SendTransactionScreen.prototype.renderHeader = function () {
])
}
-SendTransactionScreen.prototype.renderErrorMessage = function(errorType) {
+SendTransactionScreen.prototype.renderErrorMessage = function (errorType) {
const { errors } = this.props
- const errorMessage = errors[errorType];
+ const errorMessage = errors[errorType]
return errorMessage
- ? h('div.send-v2__error', [ errorMessage ] )
+ ? h('div.send-v2__error', [ errorMessage ])
: null
}
@@ -154,7 +149,6 @@ SendTransactionScreen.prototype.renderFromRow = function () {
from,
fromAccounts,
conversionRate,
- setSelectedAddress,
updateSendFrom,
} = this.props
@@ -243,7 +237,6 @@ SendTransactionScreen.prototype.validateAmount = function (value) {
amountConversionRate,
conversionRate,
primaryCurrency,
- toCurrency,
selectedToken,
gasTotal,
} = this.props
@@ -440,7 +433,6 @@ SendTransactionScreen.prototype.onSubmit = function (event) {
signTokenTx,
signTx,
selectedToken,
- toAccounts,
clearSend,
errors: { amount: amountError, to: toError },
} = this.props