diff options
author | kumavis <kumavis@users.noreply.github.com> | 2016-05-26 10:42:51 +0800 |
---|---|---|
committer | kumavis <kumavis@users.noreply.github.com> | 2016-05-26 10:42:51 +0800 |
commit | 36d6b3959e3958c6ed2517013626f59ff912271e (patch) | |
tree | 8c27a5d2926d65002a2996048c8444657f31acbe /ui/app/components | |
parent | 7c7fa23374a2d71eab03f53a766452ba6d711cb7 (diff) | |
parent | 2ce9f1a776ea3168438fa2bdfcac90b35492e8ac (diff) | |
download | tangerine-wallet-browser-36d6b3959e3958c6ed2517013626f59ff912271e.tar tangerine-wallet-browser-36d6b3959e3958c6ed2517013626f59ff912271e.tar.gz tangerine-wallet-browser-36d6b3959e3958c6ed2517013626f59ff912271e.tar.bz2 tangerine-wallet-browser-36d6b3959e3958c6ed2517013626f59ff912271e.tar.lz tangerine-wallet-browser-36d6b3959e3958c6ed2517013626f59ff912271e.tar.xz tangerine-wallet-browser-36d6b3959e3958c6ed2517013626f59ff912271e.tar.zst tangerine-wallet-browser-36d6b3959e3958c6ed2517013626f59ff912271e.zip |
Merge pull request #222 from MetaMask/balances
Fixes #206
Diffstat (limited to 'ui/app/components')
-rw-r--r-- | ui/app/components/eth-balance.js | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/ui/app/components/eth-balance.js b/ui/app/components/eth-balance.js index 3f88ef2d4..76b75d4c8 100644 --- a/ui/app/components/eth-balance.js +++ b/ui/app/components/eth-balance.js @@ -2,6 +2,7 @@ const Component = require('react').Component const h = require('react-hyperscript') const inherits = require('util').inherits const parseBalance = require('../util').parseBalance +const formatBalance = require('../util').formatBalance module.exports = EthBalanceComponent @@ -12,11 +13,8 @@ function EthBalanceComponent() { EthBalanceComponent.prototype.render = function() { var state = this.props - var parsedAmount = parseBalance(state.value) - var beforeDecimal = parsedAmount[0] - var afterDecimal = parsedAmount[1] - var value = beforeDecimal+(afterDecimal ? '.'+afterDecimal : '') var style = state.style + var value = formatBalance(state.value) return ( @@ -28,12 +26,6 @@ EthBalanceComponent.prototype.render = function() { display: 'inline', }, }, value), - h('.ether-balance-label', { - style: { - display: 'inline', - marginLeft: 6, - }, - }, 'ETH'), ]) ) |