diff options
author | Dan <danjm.com@gmail.com> | 2017-12-09 09:22:31 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-12-13 04:14:40 +0800 |
commit | 4b654669e692665aba88a14cb5804370dbfd4a80 (patch) | |
tree | 62fdbd8e913cfcef1fbf020f752f6e62d6208e3d /ui/app | |
parent | 05c6789030791bd1b46434cf89c1817db37e8f38 (diff) | |
download | tangerine-wallet-browser-4b654669e692665aba88a14cb5804370dbfd4a80.tar tangerine-wallet-browser-4b654669e692665aba88a14cb5804370dbfd4a80.tar.gz tangerine-wallet-browser-4b654669e692665aba88a14cb5804370dbfd4a80.tar.bz2 tangerine-wallet-browser-4b654669e692665aba88a14cb5804370dbfd4a80.tar.lz tangerine-wallet-browser-4b654669e692665aba88a14cb5804370dbfd4a80.tar.xz tangerine-wallet-browser-4b654669e692665aba88a14cb5804370dbfd4a80.tar.zst tangerine-wallet-browser-4b654669e692665aba88a14cb5804370dbfd4a80.zip |
Hide open in browser button on mobile (but still show on extension); adds a function to detect if viewing with mobile browser.
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/components/tx-view.js | 5 | ||||
-rw-r--r-- | ui/app/select-app.js | 1 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ui/app/components/tx-view.js b/ui/app/components/tx-view.js index 832f8e56a..bd52ac4c2 100644 --- a/ui/app/components/tx-view.js +++ b/ui/app/components/tx-view.js @@ -3,6 +3,7 @@ const connect = require('react-redux').connect const h = require('react-hyperscript') const ethUtil = require('ethereumjs-util') const inherits = require('util').inherits +const isMobileBrowser = require('../../lib/is-mobile-browser') const actions = require('../actions') const selectors = require('../selectors') @@ -140,9 +141,9 @@ TxView.prototype.render = function () { identity.name, ]), - h('div.open-in-browser', { + !isMobileBrowser() && h('div.open-in-browser', { onClick: () => global.platform.openExtensionInBrowser(), - }, [h('img', { src: 'images/open.svg' })]) + }, [h('img', { src: 'images/open.svg' })]), ]), diff --git a/ui/app/select-app.js b/ui/app/select-app.js index ffa31b767..3ea93ced3 100644 --- a/ui/app/select-app.js +++ b/ui/app/select-app.js @@ -41,7 +41,6 @@ SelectedApp.prototype.componentWillReceiveProps = function (nextProps) { SelectedApp.prototype.render = function () { const { betaUI } = this.props - const { autoAdd } = this.state const Selected = betaUI ? App : OldApp return h(Selected) } |