aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-09-07 08:28:25 +0800
committerDan Finlay <dan@danfinlay.com>2016-09-07 08:28:25 +0800
commit1537e3f5da8d0ad5a48ded40301445c6468521f7 (patch)
tree6360c57d839acaa0e0f6d1eedfe7964204fa3135
parent16fe97676c9614f7a9199ce177074aca2edd56b5 (diff)
downloadtangerine-wallet-browser-1537e3f5da8d0ad5a48ded40301445c6468521f7.tar
tangerine-wallet-browser-1537e3f5da8d0ad5a48ded40301445c6468521f7.tar.gz
tangerine-wallet-browser-1537e3f5da8d0ad5a48ded40301445c6468521f7.tar.bz2
tangerine-wallet-browser-1537e3f5da8d0ad5a48ded40301445c6468521f7.tar.lz
tangerine-wallet-browser-1537e3f5da8d0ad5a48ded40301445c6468521f7.tar.xz
tangerine-wallet-browser-1537e3f5da8d0ad5a48ded40301445c6468521f7.tar.zst
tangerine-wallet-browser-1537e3f5da8d0ad5a48ded40301445c6468521f7.zip
Add fiat balances to tx conf view
-rw-r--r--ui/app/components/pending-tx-details.js11
-rw-r--r--ui/app/send.js5
2 files changed, 7 insertions, 9 deletions
diff --git a/ui/app/components/pending-tx-details.js b/ui/app/components/pending-tx-details.js
index 2fb0eae3f..c2e39a1ca 100644
--- a/ui/app/components/pending-tx-details.js
+++ b/ui/app/components/pending-tx-details.js
@@ -4,9 +4,8 @@ const inherits = require('util').inherits
const carratInline = require('fs').readFileSync('./images/forward-carrat.svg', 'utf8')
const MiniAccountPanel = require('./mini-account-panel')
-const EtherBalance = require('./eth-balance')
+const EthBalance = require('./eth-balance')
const addressSummary = require('../util').addressSummary
-const formatBalance = require('../util').formatBalance
const nameForAddress = require('../../lib/contract-namer')
const ethUtil = require('ethereumjs-util')
const BN = ethUtil.BN
@@ -70,7 +69,7 @@ PTXP.render = function () {
fontFamily: 'Montserrat Light, Montserrat, sans-serif',
},
}, [
- h(EtherBalance, {
+ h(EthBalance, {
value: balance,
inline: true,
labelColor: '#F7861C',
@@ -107,12 +106,12 @@ PTXP.render = function () {
h('.row', [
h('.cell.label', 'Amount'),
- h('.cell.value', formatBalance(txParams.value)),
+ h(EthBalance, { value: txParams.value }),
]),
h('.cell.row', [
h('.cell.label', 'Max Transaction Fee'),
- h('.cell.value', formatBalance(txFee.toString(16))),
+ h(EthBalance, { value: txFee.toString(16) }),
]),
h('.cell.row', {
@@ -129,7 +128,7 @@ PTXP.render = function () {
alignItems: 'center',
},
}, [
- h(EtherBalance, {
+ h(EthBalance, {
value: maxCost.toString(16),
inline: true,
labelColor: 'black',
diff --git a/ui/app/send.js b/ui/app/send.js
index cf1b43b1d..009866cf7 100644
--- a/ui/app/send.js
+++ b/ui/app/send.js
@@ -7,7 +7,7 @@ const actions = require('./actions')
const util = require('./util')
const numericBalance = require('./util').numericBalance
const addressSummary = require('./util').addressSummary
-const EtherBalance = require('./components/eth-balance')
+const EthBalance = require('./components/eth-balance')
const ethUtil = require('ethereumjs-util')
module.exports = connect(mapStateToProps)(SendTransactionScreen)
@@ -107,8 +107,7 @@ SendTransactionScreen.prototype.render = function () {
// balance
h('.flex-row.flex-center', [
- // h('div', formatBalance(account && account.balance)),
- h(EtherBalance, {
+ h(EthBalance, {
value: account && account.balance,
}),