aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/tx-view.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-12-09 09:22:31 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-12-13 04:14:40 +0800
commit4b654669e692665aba88a14cb5804370dbfd4a80 (patch)
tree62fdbd8e913cfcef1fbf020f752f6e62d6208e3d /ui/app/components/tx-view.js
parent05c6789030791bd1b46434cf89c1817db37e8f38 (diff)
downloadtangerine-wallet-browser-4b654669e692665aba88a14cb5804370dbfd4a80.tar.gz
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/components/tx-view.js')
-rw-r--r--ui/app/components/tx-view.js5
1 files changed, 3 insertions, 2 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' })]),
]),