aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/identicon.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-06-14 08:47:56 +0800
committerDan Finlay <dan@danfinlay.com>2017-06-14 08:53:42 +0800
commit108c4ab2c58074aa8148828fbbef8cbf3a4e23f5 (patch)
treee09b0ee929a73cd5d545ac90f695b23568c9ef58 /ui/app/components/identicon.js
parentde500250c463f51f68abff44c8ed6c20912b48c0 (diff)
downloadtangerine-wallet-browser-108c4ab2c58074aa8148828fbbef8cbf3a4e23f5.tar.gz
tangerine-wallet-browser-108c4ab2c58074aa8148828fbbef8cbf3a4e23f5.tar.zst
tangerine-wallet-browser-108c4ab2c58074aa8148828fbbef8cbf3a4e23f5.zip
Auto populate token list with popular token balances
Half implements #175 Things to do: - Add ability to add tokens to the list. - Persist the token tab selection (so it is an implicit preference) - Check what's up with the token-tracker polling, it seems like it is not waiting the interval.
Diffstat (limited to 'ui/app/components/identicon.js')
-rw-r--r--ui/app/components/identicon.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/app/components/identicon.js b/ui/app/components/identicon.js
index 58bd2bdc4..c754bc6ba 100644
--- a/ui/app/components/identicon.js
+++ b/ui/app/components/identicon.js
@@ -23,7 +23,9 @@ IdenticonComponent.prototype.render = function () {
h('div', {
key: 'identicon-' + this.props.address,
style: {
- display: 'inline-block',
+ display: 'flex',
+ alignItems: 'center',
+ justifyContent: 'center',
height: diameter,
width: diameter,
borderRadius: diameter / 2,
@@ -40,8 +42,8 @@ IdenticonComponent.prototype.componentDidMount = function () {
if (!address) return
var container = findDOMNode(this)
- var diameter = props.diameter || this.defaultDiameter
+ var diameter = props.diameter || this.defaultDiameter
if (!isNode) {
var img = iconFactory.iconForAddress(address, diameter)
container.appendChild(img)