aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/eth-balance.js
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-08-17 01:34:29 +0800
committerKevin Serrano <kevgagser@gmail.com>2016-08-17 01:34:29 +0800
commit009784c79b5c0ebfd9dbe9536870c55e906e914d (patch)
tree9e005395428047e33bf20e462d50ccd2007115a0 /ui/app/components/eth-balance.js
parent6895d330ffdf0f071e4df3fb9da47f2ea6fc7491 (diff)
downloadtangerine-wallet-browser-009784c79b5c0ebfd9dbe9536870c55e906e914d.tar
tangerine-wallet-browser-009784c79b5c0ebfd9dbe9536870c55e906e914d.tar.gz
tangerine-wallet-browser-009784c79b5c0ebfd9dbe9536870c55e906e914d.tar.bz2
tangerine-wallet-browser-009784c79b5c0ebfd9dbe9536870c55e906e914d.tar.lz
tangerine-wallet-browser-009784c79b5c0ebfd9dbe9536870c55e906e914d.tar.xz
tangerine-wallet-browser-009784c79b5c0ebfd9dbe9536870c55e906e914d.tar.zst
tangerine-wallet-browser-009784c79b5c0ebfd9dbe9536870c55e906e914d.zip
Divided eth components for tx and account detail.
Diffstat (limited to 'ui/app/components/eth-balance.js')
-rw-r--r--ui/app/components/eth-balance.js16
1 files changed, 2 insertions, 14 deletions
diff --git a/ui/app/components/eth-balance.js b/ui/app/components/eth-balance.js
index 1a7f75db9..a5584a235 100644
--- a/ui/app/components/eth-balance.js
+++ b/ui/app/components/eth-balance.js
@@ -6,15 +6,7 @@ const formatBalance = require('../util').formatBalance
const generateBalanceObject = require('../util').generateBalanceObject
const Tooltip = require('./tooltip.js')
-module.exports = connect(mapStateToProps)(EthBalanceComponent)
-
-function mapStateToProps (state) {
- return {
- conversionRate: state.metamask.conversionRate,
- conversionDate: state.metamask.conversionDate,
- currentFiat: state.metamask.currentFiat,
- }
-}
+module.exports = EthBalanceComponent
inherits(EthBalanceComponent, Component)
function EthBalanceComponent () {
@@ -50,8 +42,6 @@ EthBalanceComponent.prototype.renderBalance = function (value, state) {
var splitBalance = value.split(' ')
var ethNumber = splitBalance[0]
var ethSuffix = splitBalance[1]
- var fiatNumber = Number(splitBalance[0]) * state.conversionRate
- var fiatSuffix = state.currentFiat
if (state.shorten) {
balance = balanceObj.shortBalance
@@ -64,9 +54,7 @@ EthBalanceComponent.prototype.renderBalance = function (value, state) {
return (
h(Tooltip, {
position: 'bottom',
- multiline: true,
- title: `${ethNumber} ${ethSuffix}
- ${fiatNumber} ${fiatSuffix}`,
+ title: `${ethNumber} ${ethSuffix}`,
}, [
h('.flex-column', {
style: {