A Metamask fork with Infura removed and default networks editable
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ciphermask/ui/app/components/token-cell.js

30 lines
596 B

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}`),
])
)
}