diff options
author | Dan <danjm.com@gmail.com> | 2017-10-18 01:22:23 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-10-19 11:21:46 +0800 |
commit | f81226fbe9f98d5a6c408e289fa0ea61a467e7dc (patch) | |
tree | d2aba01747012ad1eb7829521647b71f88c114fe /ui/app/components/send/gas-fee-display-v2.js | |
parent | 4f9ac1c4fe67ec4c196ce1891ecc1743552d45ce (diff) | |
download | tangerine-wallet-browser-f81226fbe9f98d5a6c408e289fa0ea61a467e7dc.tar.gz tangerine-wallet-browser-f81226fbe9f98d5a6c408e289fa0ea61a467e7dc.tar.zst tangerine-wallet-browser-f81226fbe9f98d5a6c408e289fa0ea61a467e7dc.zip |
Move all of send state to metamask state.
Diffstat (limited to 'ui/app/components/send/gas-fee-display-v2.js')
-rw-r--r-- | ui/app/components/send/gas-fee-display-v2.js | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/ui/app/components/send/gas-fee-display-v2.js b/ui/app/components/send/gas-fee-display-v2.js index 961d55610..7c3913c7f 100644 --- a/ui/app/components/send/gas-fee-display-v2.js +++ b/ui/app/components/send/gas-fee-display-v2.js @@ -1,9 +1,7 @@ const Component = require('react').Component const h = require('react-hyperscript') const inherits = require('util').inherits -const CurrencyDisplay = require('./currency-display'); - -const { multiplyCurrencies } = require('../../conversion-util') +const CurrencyDisplay = require('./currency-display') module.exports = GasFeeDisplay @@ -15,24 +13,17 @@ function GasFeeDisplay () { GasFeeDisplay.prototype.render = function () { const { conversionRate, - gasLimit, - gasPrice, + gasTotal, onClick, } = this.props - const readyToRender = Boolean(gasLimit && gasPrice) - return h('div', [ - readyToRender + gasTotal ? h(CurrencyDisplay, { primaryCurrency: 'ETH', convertedCurrency: 'USD', - value: multiplyCurrencies(gasLimit, gasPrice, { - toNumericBase: 'hex', - multiplicandBase: 16, - multiplierBase: 16, - }), + value: gasTotal, conversionRate, convertedPrefix: '$', readOnly: true, |