diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-04-21 10:07:09 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-04-21 10:10:22 +0800 |
commit | 9bae32e78b230ede45ab159e0022da5728f0f267 (patch) | |
tree | 27557607b4f512d5639ea0b84d863091b778ed74 /ui/app/components/token-cell.js | |
parent | d7d13caf05f027dca86882db0a72625db8da167c (diff) | |
download | tangerine-wallet-browser-9bae32e78b230ede45ab159e0022da5728f0f267.tar.gz tangerine-wallet-browser-9bae32e78b230ede45ab159e0022da5728f0f267.tar.zst tangerine-wallet-browser-9bae32e78b230ede45ab159e0022da5728f0f267.zip |
Add functional but ugly and hard-coded token list
Diffstat (limited to 'ui/app/components/token-cell.js')
-rw-r--r-- | ui/app/components/token-cell.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ui/app/components/token-cell.js b/ui/app/components/token-cell.js new file mode 100644 index 000000000..34a12733f --- /dev/null +++ b/ui/app/components/token-cell.js @@ -0,0 +1,22 @@ +const Component = require('react').Component +const h = require('react-hyperscript') +const inherits = require('util').inherits + +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', [ + h('span', `${symbol}: ${string}`), + ]) + ) +} |