aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2016-06-24 07:09:25 +0800
committerkumavis <aaron@kumavis.me>2016-06-24 07:09:25 +0800
commit7eb89613ccee118d97a48d83336bbea44614da18 (patch)
treea3a72177a18b6c1284896950d82473b1ba718f58 /ui/app
parentcc7dbace38bc41bb177738586e9a60adf541d2ab (diff)
downloadtangerine-wallet-browser-7eb89613ccee118d97a48d83336bbea44614da18.tar
tangerine-wallet-browser-7eb89613ccee118d97a48d83336bbea44614da18.tar.gz
tangerine-wallet-browser-7eb89613ccee118d97a48d83336bbea44614da18.tar.bz2
tangerine-wallet-browser-7eb89613ccee118d97a48d83336bbea44614da18.tar.lz
tangerine-wallet-browser-7eb89613ccee118d97a48d83336bbea44614da18.tar.xz
tangerine-wallet-browser-7eb89613ccee118d97a48d83336bbea44614da18.tar.zst
tangerine-wallet-browser-7eb89613ccee118d97a48d83336bbea44614da18.zip
icon-factory - overhaul to provide svg or imagified el
Diffstat (limited to 'ui/app')
-rw-r--r--ui/app/components/identicon.js7
-rw-r--r--ui/app/components/panel.js6
2 files changed, 5 insertions, 8 deletions
diff --git a/ui/app/components/identicon.js b/ui/app/components/identicon.js
index 5fe07ce7a..c17bd5122 100644
--- a/ui/app/components/identicon.js
+++ b/ui/app/components/identicon.js
@@ -39,12 +39,9 @@ IdenticonComponent.prototype.componentDidMount = function () {
if (!address) return
var container = findDOMNode(this)
-
var diameter = state.diameter || this.defaultDiameter
- var dataUri = iconFactory.iconForAddress(address, diameter)
-
- var img = document.createElement('img')
- img.src = dataUri
+ var imageify = state.imageify
+ var img = iconFactory.iconForAddress(address, diameter, imageify)
container.appendChild(img)
}
diff --git a/ui/app/components/panel.js b/ui/app/components/panel.js
index 3efd3c661..cbdc82982 100644
--- a/ui/app/components/panel.js
+++ b/ui/app/components/panel.js
@@ -27,9 +27,9 @@ Panel.prototype.render = function () {
// account identicon
h('.identicon-wrapper.flex-column.select-none', [
- // h(Identicon, {
- // address: state.identiconKey,
- // }),
+ h(Identicon, {
+ address: state.identiconKey,
+ }),
h('span.font-small', state.identiconLabel),
]),