aboutsummaryrefslogtreecommitdiffstats
path: root/old-ui/app/add-suggested-token.js
diff options
context:
space:
mode:
authorEsteban MIno <efmino@uc.cl>2018-08-08 08:07:26 +0800
committerEsteban MIno <efmino@uc.cl>2018-08-08 08:07:26 +0800
commitc245405acb2323239d079d574cbf4230ec068c35 (patch)
tree686b584d7d6e2866a9432ac9ba7e2a25cd14d854 /old-ui/app/add-suggested-token.js
parent33357e3538b5157a852323d5f1e2db7f19b3303e (diff)
downloadtangerine-wallet-browser-c245405acb2323239d079d574cbf4230ec068c35.tar
tangerine-wallet-browser-c245405acb2323239d079d574cbf4230ec068c35.tar.gz
tangerine-wallet-browser-c245405acb2323239d079d574cbf4230ec068c35.tar.bz2
tangerine-wallet-browser-c245405acb2323239d079d574cbf4230ec068c35.tar.lz
tangerine-wallet-browser-c245405acb2323239d079d574cbf4230ec068c35.tar.xz
tangerine-wallet-browser-c245405acb2323239d079d574cbf4230ec068c35.tar.zst
tangerine-wallet-browser-c245405acb2323239d079d574cbf4230ec068c35.zip
show token address summary on old ui
Diffstat (limited to 'old-ui/app/add-suggested-token.js')
-rw-r--r--old-ui/app/add-suggested-token.js29
1 files changed, 19 insertions, 10 deletions
diff --git a/old-ui/app/add-suggested-token.js b/old-ui/app/add-suggested-token.js
index 1a0fc0461..51be4c5f2 100644
--- a/old-ui/app/add-suggested-token.js
+++ b/old-ui/app/add-suggested-token.js
@@ -5,6 +5,9 @@ const connect = require('react-redux').connect
const actions = require('../../ui/app/actions')
const Tooltip = require('./components/tooltip.js')
const ethUtil = require('ethereumjs-util')
+const Copyable = require('./components/copyable')
+const addressSummary = require('./util').addressSummary
+
module.exports = connect(mapStateToProps)(AddSuggestedTokenScreen)
@@ -70,16 +73,22 @@ AddSuggestedTokenScreen.prototype.render = function () {
]),
]),
- h('section.flex-row.flex-center', [
- h('p#token-address', {
- name: 'address',
- style: {
- width: 'inherit',
- flex: '1 0 auto',
- height: '30px',
- margin: '8px',
- },
- }, address),
+ h('div', {
+ style: { display: 'flex' },
+ }, [
+ h(Copyable, {
+ value: ethUtil.toChecksumAddress(address),
+ }, [
+ h('span#token-address', {
+ style: {
+ width: 'inherit',
+ flex: '1 0 auto',
+ height: '30px',
+ margin: '8px',
+ display: 'flex',
+ },
+ }, addressSummary(address, 24, 4, false)),
+ ]),
]),
h('div', [