diff options
author | Dan Finlay <542863+danfinlay@users.noreply.github.com> | 2018-02-14 02:28:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-14 02:28:49 +0800 |
commit | 96d40ee618fc158c0e447f770d9077ba145ef91f (patch) | |
tree | 8895771a27597ec1274209c9b55c73e55b819441 /old-ui | |
parent | 35c762da47c4b604f44e903940245f87eb7a3d3a (diff) | |
parent | bb79fb354b4618e3090cd1c1a232f318b86ebf88 (diff) | |
download | tangerine-wallet-browser-96d40ee618fc158c0e447f770d9077ba145ef91f.tar tangerine-wallet-browser-96d40ee618fc158c0e447f770d9077ba145ef91f.tar.gz tangerine-wallet-browser-96d40ee618fc158c0e447f770d9077ba145ef91f.tar.bz2 tangerine-wallet-browser-96d40ee618fc158c0e447f770d9077ba145ef91f.tar.lz tangerine-wallet-browser-96d40ee618fc158c0e447f770d9077ba145ef91f.tar.xz tangerine-wallet-browser-96d40ee618fc158c0e447f770d9077ba145ef91f.tar.zst tangerine-wallet-browser-96d40ee618fc158c0e447f770d9077ba145ef91f.zip |
Merge pull request #3216 from danjm/MM-666-try-beta-link-unlock-privacy-screens
[NewUI] Try beta link on unlock and privacy screens.
Diffstat (limited to 'old-ui')
-rw-r--r-- | old-ui/app/app.js | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/old-ui/app/app.js b/old-ui/app/app.js index 6eb1e487f..61f6223bc 100644 --- a/old-ui/app/app.js +++ b/old-ui/app/app.js @@ -456,11 +456,31 @@ App.prototype.renderPrimary = function () { // notices if (!props.noActiveNotices) { log.debug('rendering notice screen for unread notices.') - return h(NoticeScreen, { - notice: props.lastUnreadNotice, - key: 'NoticeScreen', - onConfirm: () => props.dispatch(actions.markNoticeRead(props.lastUnreadNotice)), - }) + return h('div', [ + + h(NoticeScreen, { + notice: props.lastUnreadNotice, + key: 'NoticeScreen', + onConfirm: () => props.dispatch(actions.markNoticeRead(props.lastUnreadNotice)), + }), + + !props.isInitialized && h('.flex-row.flex-center.flex-grow', [ + h('p.pointer', { + onClick: () => { + global.platform.openExtensionInBrowser() + props.dispatch(actions.setFeatureFlag('betaUI', true, 'BETA_UI_NOTIFICATION_MODAL')) + .then(() => props.dispatch(actions.setNetworkEndpoints(BETA_UI_NETWORK_TYPE))) + }, + style: { + fontSize: '0.8em', + color: '#aeaeae', + textDecoration: 'underline', + marginTop: '32px', + }, + }, 'Try Beta Version'), + ]), + + ]) } else if (props.lostAccounts && props.lostAccounts.length > 0) { log.debug('rendering notice screen for lost accounts view.') return h(NoticeScreen, { |