From 9dce1b6fd5cdf8e5e14240bbcf1088f23e92c285 Mon Sep 17 00:00:00 2001 From: sdtsui Date: Tue, 22 Aug 2017 15:24:48 -0700 Subject: [PATCH] Remove fake transactions and balances from tx-list and wallet-view, respectively --- ui/app/components/tx-list.js | 38 ----------------------------- ui/app/components/wallet-view.js | 42 ++++++++------------------------ 2 files changed, 10 insertions(+), 70 deletions(-) diff --git a/ui/app/components/tx-list.js b/ui/app/components/tx-list.js index 74d46728c..30e38b4d7 100644 --- a/ui/app/components/tx-list.js +++ b/ui/app/components/tx-list.js @@ -52,44 +52,6 @@ TxList.prototype.render = function () { this.renderTransactionListItem(), - contentDivider, - - this.renderTransactionListItem(), - - contentDivider, - - this.renderTransactionListItem(), - - contentDivider, - - this.renderTransactionListItem(), - - contentDivider, - - this.renderTransactionListItem(), - - contentDivider, - - this.renderTransactionListItem(), - - contentDivider, - - this.renderTransactionListItem(), - - contentDivider, - - this.renderTransactionListItem(), - - contentDivider, - - this.renderTransactionListItem(), - - contentDivider, - - this.renderTransactionListItem(), - - contentDivider, - ]) } diff --git a/ui/app/components/wallet-view.js b/ui/app/components/wallet-view.js index 9fe827da2..59859a8e0 100644 --- a/ui/app/components/wallet-view.js +++ b/ui/app/components/wallet-view.js @@ -43,15 +43,6 @@ WalletView.prototype.render = function () { // temporary logs + fake extra wallets console.log("walletview, selectedAccount:", selectedAccount) - const extraWallet = h('div.flex-column.wallet-balance-wrapper', {}, [ - h('div.wallet-balance', {}, [ - h(BalanceComponent, { - balanceValue: selectedAccount.balance, - style: {}, - }), - ]), - ]) - return h('div.wallet-view.flex-column' + (responsiveDisplayClassname || ''), { style: {}, }, [ @@ -148,28 +139,15 @@ WalletView.prototype.render = function () { ]), - h('div.flex-column.wallet-balance-wrapper', {}, [ - - h('div.wallet-balance', {}, [ - - h(BalanceComponent, { - balanceValue: selectedAccount.balance, - style: {}, - }), - - ]), - - ]), - - extraWallet, - extraWallet, - extraWallet, - extraWallet, - extraWallet, - extraWallet, - extraWallet, - extraWallet, - extraWallet, - extraWallet, ]) } + +// TODO: Extra wallets, for dev testing. Remove when PRing to master. +// const extraWallet = h('div.flex-column.wallet-balance-wrapper', {}, [ +// h('div.wallet-balance', {}, [ +// h(BalanceComponent, { +// balanceValue: selectedAccount.balance, +// style: {}, +// }), +// ]), +// ])