diff options
author | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2019-02-21 20:24:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-21 20:24:32 +0800 |
commit | 65bfdeedc77e51dea28ef643b5ea9d50a8569c81 (patch) | |
tree | 91859eabd9280c19131a403e35a9bc5262a6e402 /old-ui/app/new-ui-annoucement.js | |
parent | c6e84ccf458061a6b64e6a15512b008e8d0166ea (diff) | |
parent | 38bb1d39792d8e4c238f7528990d725527379550 (diff) | |
download | tangerine-wallet-browser-65bfdeedc77e51dea28ef643b5ea9d50a8569c81.tar tangerine-wallet-browser-65bfdeedc77e51dea28ef643b5ea9d50a8569c81.tar.gz tangerine-wallet-browser-65bfdeedc77e51dea28ef643b5ea9d50a8569c81.tar.bz2 tangerine-wallet-browser-65bfdeedc77e51dea28ef643b5ea9d50a8569c81.tar.lz tangerine-wallet-browser-65bfdeedc77e51dea28ef643b5ea9d50a8569c81.tar.xz tangerine-wallet-browser-65bfdeedc77e51dea28ef643b5ea9d50a8569c81.tar.zst tangerine-wallet-browser-65bfdeedc77e51dea28ef643b5ea9d50a8569c81.zip |
Merge pull request #6166 from whymarrh/bye-bye-old-ui
Delete the old UI
Diffstat (limited to 'old-ui/app/new-ui-annoucement.js')
-rw-r--r-- | old-ui/app/new-ui-annoucement.js | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/old-ui/app/new-ui-annoucement.js b/old-ui/app/new-ui-annoucement.js deleted file mode 100644 index 59b126279..000000000 --- a/old-ui/app/new-ui-annoucement.js +++ /dev/null @@ -1,85 +0,0 @@ -const PropTypes = require('prop-types') -const {PureComponent} = require('react') -const h = require('react-hyperscript') -const actions = require('../../ui/app/actions') - -module.exports = class NewUiAnnouncement extends PureComponent { - static propTypes = { - dispatch: PropTypes.func.isRequired, - }; - - close = async () => { - await this.props.dispatch(actions.setFeatureFlag('skipAnnounceBetaUI', true)) - } - - switchToNewUi = async () => { - const flag = 'betaUI' - const enabled = true - await this.props.dispatch(actions.setFeatureFlag( - flag, - enabled, - )) - await this.close() - global.platform.openExtensionInBrowser() - } - - render () { - return ( - h('div.new-ui-announcement', [ - h('section.new-ui-announcement__announcement-header', [ - h('h1', 'Announcement'), - h('a.close', { - onClick: this.close, - }, '×'), - ]), - h('section.new-ui-announcement__body', [ - h('h1', 'A New Version of MetaMask'), - h('p', [ - "We're excited to announce a brand-new version of MetaMask with enhanced features and functionality.", - ]), - h('div.updates-list', [ - h('h2', 'Updates include'), - h('ul', [ - h('li', 'New user interface'), - h('li', 'Full-screen mode'), - h('li', 'Better token support'), - h('li', 'Better gas controls'), - h('li', 'Advanced features for developers'), - h('li', 'New confirmation screens'), - h('li', 'And more!'), - ]), - ]), - h('p', [ - 'You can still use the current version of MetaMask. The new version is still in beta, ' + - 'however we encourage you to try it out as we transition into this exciting new update.', - h('span', { - dangerouslySetInnerHTML: { - __html: ' ', - }, - }), - h('a', { - href: 'https://medium.com/metamask/74dba32cc7f7', - onClick ({target}) { - const url = target.href - global.platform.openWindow({ - url, - }) - }, - }, [ - 'Learn more.', - ]), - ]), - ]), - h('section.new-ui-announcement__footer', [ - h('h1', 'Ready to try the new MetaMask?'), - h('button.positive', { - onClick: this.switchToNewUi, - }, 'Try it now'), - h('button.negative', { - onClick: this.close, - }, 'No thanks, maybe later'), - ]), - ]) - ) - } -} |