diff options
author | Frankie <frankie.pangilinan@consensys.net> | 2016-07-01 02:15:32 +0800 |
---|---|---|
committer | Frankie <frankie.pangilinan@consensys.net> | 2016-07-01 02:15:32 +0800 |
commit | 5252504e3f1b8437d6152861f06ee490f723276e (patch) | |
tree | 2556f1423c147ff98143b910782eca484f192513 /ui/app/components/eth-balance.js | |
parent | 4433618e95b8d5638bf890e746a6bc7c3793ba80 (diff) | |
download | tangerine-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.js | 18 |
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) + ]) + ) + +} |