aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-04-25 04:55:19 +0800
committerDan Finlay <dan@danfinlay.com>2017-04-25 04:55:19 +0800
commitbce4af2dcaeeab3bd931afbbcc6f17da675ce2b6 (patch)
treeb35d2ac60642a7eb524a511a2be9a1a31be1ed0f /ui/app
parent40e2450022488daa5e36d4c1b866e061bba7c5d2 (diff)
downloadtangerine-wallet-browser-bce4af2dcaeeab3bd931afbbcc6f17da675ce2b6.tar
tangerine-wallet-browser-bce4af2dcaeeab3bd931afbbcc6f17da675ce2b6.tar.gz
tangerine-wallet-browser-bce4af2dcaeeab3bd931afbbcc6f17da675ce2b6.tar.bz2
tangerine-wallet-browser-bce4af2dcaeeab3bd931afbbcc6f17da675ce2b6.tar.lz
tangerine-wallet-browser-bce4af2dcaeeab3bd931afbbcc6f17da675ce2b6.tar.xz
tangerine-wallet-browser-bce4af2dcaeeab3bd931afbbcc6f17da675ce2b6.tar.zst
tangerine-wallet-browser-bce4af2dcaeeab3bd931afbbcc6f17da675ce2b6.zip
Add placeholder etherscan token icons
Diffstat (limited to 'ui/app')
-rw-r--r--ui/app/components/token-cell.js4
-rw-r--r--ui/app/components/token-list.js8
2 files changed, 10 insertions, 2 deletions
diff --git a/ui/app/components/token-cell.js b/ui/app/components/token-cell.js
index 81e92b301..879dc01d1 100644
--- a/ui/app/components/token-cell.js
+++ b/ui/app/components/token-cell.js
@@ -12,7 +12,7 @@ function TokenCell () {
TokenCell.prototype.render = function () {
const props = this.props
- const { address, symbol, string } = props
+ const { address, symbol, string, network } = props
log.info({ address, symbol, string })
return (
@@ -21,9 +21,11 @@ TokenCell.prototype.render = function () {
h(Identicon, {
diameter: 50,
address,
+ network,
}),
h('h3', `${string || 0} ${symbol}`),
])
)
}
+
diff --git a/ui/app/components/token-list.js b/ui/app/components/token-list.js
index c6a7d3552..6589dea62 100644
--- a/ui/app/components/token-list.js
+++ b/ui/app/components/token-list.js
@@ -23,9 +23,10 @@ function TokenList () {
TokenList.prototype.render = function () {
const tokens = this.state.tokens
+ const network = this.props.network
const tokenViews = tokens.map((tokenData) => {
- console.log('rendering token with', tokenData)
+ tokenData.network = network
return h(TokenCell, tokenData)
})
@@ -43,6 +44,11 @@ TokenList.prototype.render = function () {
margin-left: 12px;
}
+ li.token-cell:hover {
+ background: white;
+ cursor: pointer;
+ }
+
`)].concat(tokenViews))
)
}