diff options
author | Dan Finlay <flyswatter@users.noreply.github.com> | 2017-07-19 02:05:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-19 02:05:19 +0800 |
commit | 199587383b022a17d56adcb56d6a99ceba71fec7 (patch) | |
tree | f66c331820ef10fa6e61df8e2d8c129d70c8cc4c /ui/responsive/app/components/account-info-link.js | |
parent | 1e0cd5f3028619d088fedf4cdb1b4a7cb81f9cf1 (diff) | |
parent | 9e8e445695585f47e9cc3f63b2ec8313b4fc4eb8 (diff) | |
download | tangerine-wallet-browser-199587383b022a17d56adcb56d6a99ceba71fec7.tar tangerine-wallet-browser-199587383b022a17d56adcb56d6a99ceba71fec7.tar.gz tangerine-wallet-browser-199587383b022a17d56adcb56d6a99ceba71fec7.tar.bz2 tangerine-wallet-browser-199587383b022a17d56adcb56d6a99ceba71fec7.tar.lz tangerine-wallet-browser-199587383b022a17d56adcb56d6a99ceba71fec7.tar.xz tangerine-wallet-browser-199587383b022a17d56adcb56d6a99ceba71fec7.tar.zst tangerine-wallet-browser-199587383b022a17d56adcb56d6a99ceba71fec7.zip |
Merge pull request #1790 from sdtsui/newui-account-dropdowns
[newui] - Implement Advanced Option Menu & Account Switching Menu
Diffstat (limited to 'ui/responsive/app/components/account-info-link.js')
-rw-r--r-- | ui/responsive/app/components/account-info-link.js | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/ui/responsive/app/components/account-info-link.js b/ui/responsive/app/components/account-info-link.js deleted file mode 100644 index 6526ab502..000000000 --- a/ui/responsive/app/components/account-info-link.js +++ /dev/null @@ -1,41 +0,0 @@ -const Component = require('react').Component -const h = require('react-hyperscript') -const inherits = require('util').inherits -const Tooltip = require('./tooltip') -const genAccountLink = require('../../lib/account-link') - -module.exports = AccountInfoLink - -inherits(AccountInfoLink, Component) -function AccountInfoLink () { - Component.call(this) -} - -AccountInfoLink.prototype.render = function () { - const { selected, network } = this.props - const title = 'View account on Etherscan' - const url = genAccountLink(selected, network) - - if (!url) { - return null - } - - return h('.account-info-link', { - style: { - display: 'flex', - alignItems: 'center', - }, - }, [ - - h(Tooltip, { - title, - }, [ - h('i.fa.fa-info-circle.cursor-pointer.color-orange', { - style: { - margin: '5px', - }, - onClick () { global.platform.openWindow({ url }) }, - }), - ]), - ]) -} |