diff options
author | Esteban MIno <efmino@uc.cl> | 2018-08-15 07:08:12 +0800 |
---|---|---|
committer | Esteban MIno <efmino@uc.cl> | 2018-08-15 07:08:12 +0800 |
commit | a4c3f6b65c9a25da0319b9077d830c23f729b32f (patch) | |
tree | 39d272a7364f97d6f676a102e97f65d0195c450c /ui/app/components/balance-component.js | |
parent | 8f5b80a0fe13c53a602a5b2883ae1cdfba0123e1 (diff) | |
download | tangerine-wallet-browser-a4c3f6b65c9a25da0319b9077d830c23f729b32f.tar.gz tangerine-wallet-browser-a4c3f6b65c9a25da0319b9077d830c23f729b32f.tar.zst tangerine-wallet-browser-a4c3f6b65c9a25da0319b9077d830c23f729b32f.zip |
add support for images base64 and urls on new ui
Diffstat (limited to 'ui/app/components/balance-component.js')
-rw-r--r-- | ui/app/components/balance-component.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/app/components/balance-component.js b/ui/app/components/balance-component.js index e31552f2d..5e2919fca 100644 --- a/ui/app/components/balance-component.js +++ b/ui/app/components/balance-component.js @@ -33,6 +33,8 @@ function BalanceComponent () { BalanceComponent.prototype.render = function () { const props = this.props const { token, network } = props + let imageUrl + if (token) imageUrl = token.imageUrl return h('div.balance-container', {}, [ @@ -45,6 +47,7 @@ BalanceComponent.prototype.render = function () { diameter: 50, address: token && token.address, network, + imageUrl, }), token ? this.renderTokenBalance() : this.renderBalance(), |