From 7eb89613ccee118d97a48d83336bbea44614da18 Mon Sep 17 00:00:00 2001 From: kumavis Date: Thu, 23 Jun 2016 16:09:25 -0700 Subject: icon-factory - overhaul to provide svg or imagified el --- ui/app/components/identicon.js | 7 ++----- ui/app/components/panel.js | 6 +++--- 2 files changed, 5 insertions(+), 8 deletions(-) (limited to 'ui/app/components') 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), ]), -- cgit