From 3814bf8f5d75cd58243d2e9edd425a4ad085b876 Mon Sep 17 00:00:00 2001 From: Kevin Serrano Date: Tue, 16 Aug 2016 14:13:03 -0700 Subject: [PATCH] Change account list balance rendering. --- ui/app/account-detail.js | 1 - ui/app/accounts/account-list-item.js | 8 ++++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ui/app/account-detail.js b/ui/app/account-detail.js index 190045c02..2c98af0dd 100644 --- a/ui/app/account-detail.js +++ b/ui/app/account-detail.js @@ -165,7 +165,6 @@ AccountDetailScreen.prototype.render = function () { h(AccountEtherBalance, { value: account && account.balance, - mainBalance: true, style: { lineHeight: '7px', marginTop: '10px', diff --git a/ui/app/accounts/account-list-item.js b/ui/app/accounts/account-list-item.js index 1010516e2..aa80e0e23 100644 --- a/ui/app/accounts/account-list-item.js +++ b/ui/app/accounts/account-list-item.js @@ -3,7 +3,7 @@ const h = require('react-hyperscript') const inherits = require('util').inherits const ethUtil = require('ethereumjs-util') -const EtherBalance = require('../components/eth-balance') +const AccountEtherBalance = require('../components/account-eth-balance') const CopyButton = require('../components/copyButton') const Identicon = require('../components/identicon') @@ -50,8 +50,12 @@ NewComponent.prototype.render = function () { textOverflow: 'ellipsis', }, }, ethUtil.toChecksumAddress(identity.address)), - h(EtherBalance, { + h(AccountEtherBalance, { value: account.balance, + style: { + lineHeight: '7px', + marginTop: '10px', + }, }), ]),