aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/eth-balance.js
diff options
context:
space:
mode:
authorFrankie <frankie.pangilinan@consensys.net>2016-07-01 02:15:32 +0800
committerFrankie <frankie.pangilinan@consensys.net>2016-07-01 02:15:32 +0800
commit5252504e3f1b8437d6152861f06ee490f723276e (patch)
tree2556f1423c147ff98143b910782eca484f192513 /ui/app/components/eth-balance.js
parent4433618e95b8d5638bf890e746a6bc7c3793ba80 (diff)
downloadtangerine-wallet-browser-5252504e3f1b8437d6152861f06ee490f723276e.tar
tangerine-wallet-browser-5252504e3f1b8437d6152861f06ee490f723276e.tar.gz
tangerine-wallet-browser-5252504e3f1b8437d6152861f06ee490f723276e.tar.bz2
tangerine-wallet-browser-5252504e3f1b8437d6152861f06ee490f723276e.tar.lz
tangerine-wallet-browser-5252504e3f1b8437d6152861f06ee490f723276e.tar.xz
tangerine-wallet-browser-5252504e3f1b8437d6152861f06ee490f723276e.tar.zst
tangerine-wallet-browser-5252504e3f1b8437d6152861f06ee490f723276e.zip
WIP: Working on new layout
Diffstat (limited to 'ui/app/components/eth-balance.js')
-rw-r--r--ui/app/components/eth-balance.js18
1 files changed, 17 insertions, 1 deletions
diff --git a/ui/app/components/eth-balance.js b/ui/app/components/eth-balance.js
index 710d4fc8b..279feba35 100644
--- a/ui/app/components/eth-balance.js
+++ b/ui/app/components/eth-balance.js
@@ -24,8 +24,24 @@ EthBalanceComponent.prototype.render = function () {
style: {
display: 'inline',
},
- }, value),
+ }, this.renderBalance(value)),
])
)
}
+
+EthBalanceComponent.prototype.renderBalance = function (value) {
+
+ if (value === 'None') return value
+
+ var balance = value[0]
+ var label = value[1]
+
+ return (
+ h('.flex-column',[
+ h('div', balance),
+ h('div', label)
+ ])
+ )
+
+}