1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 03:36:18 +02:00
metamask-extension/ui/app/components/token-cell.js
2017-04-21 09:01:51 -07:00

30 lines
596 B
JavaScript

const Component = require('react').Component
const h = require('react-hyperscript')
const inherits = require('util').inherits
const Identicon = require('./identicon')
module.exports = TokenCell
inherits(TokenCell, Component)
function TokenCell () {
Component.call(this)
}
TokenCell.prototype.render = function () {
const props = this.props
const { address, symbol, string } = props
log.info({ address, symbol, string })
return (
h('li.token-cell', [
h(Identicon, {
diameter: 50,
address,
}),
h('h3', `${string || 0} ${symbol}`),
])
)
}