aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/tx-view.js
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@users.noreply.github.com>2017-12-23 03:40:20 +0800
committerGitHub <noreply@github.com>2017-12-23 03:40:20 +0800
commit409d1d30e9d836926e5361fb9e4b5b025b66e313 (patch)
treec7f247d1e973c50697af8b9905d9fd40d4575659 /ui/app/components/tx-view.js
parentb944a63ff89e3c45f7d7e49b2d93a5442cde4462 (diff)
parent5a58add797fcdbb023678af84a61f1d2bfdafaf1 (diff)
downloadtangerine-wallet-browser-409d1d30e9d836926e5361fb9e4b5b025b66e313.tar
tangerine-wallet-browser-409d1d30e9d836926e5361fb9e4b5b025b66e313.tar.gz
tangerine-wallet-browser-409d1d30e9d836926e5361fb9e4b5b025b66e313.tar.bz2
tangerine-wallet-browser-409d1d30e9d836926e5361fb9e4b5b025b66e313.tar.lz
tangerine-wallet-browser-409d1d30e9d836926e5361fb9e4b5b025b66e313.tar.xz
tangerine-wallet-browser-409d1d30e9d836926e5361fb9e4b5b025b66e313.tar.zst
tangerine-wallet-browser-409d1d30e9d836926e5361fb9e4b5b025b66e313.zip
Merge pull request #2799 from MetaMask/NewUI-flat
Update UAT to version 4.0.5
Diffstat (limited to 'ui/app/components/tx-view.js')
-rw-r--r--ui/app/components/tx-view.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/ui/app/components/tx-view.js b/ui/app/components/tx-view.js
index ebef22680..e42a20c85 100644
--- a/ui/app/components/tx-view.js
+++ b/ui/app/components/tx-view.js
@@ -14,6 +14,7 @@ module.exports = connect(mapStateToProps, mapDispatchToProps)(TxView)
function mapStateToProps (state) {
const sidebarOpen = state.appState.sidebarOpen
+ const isMascara = state.appState.isMascara
const identities = state.metamask.identities
const accounts = state.metamask.accounts
@@ -31,6 +32,7 @@ function mapStateToProps (state) {
selectedToken: selectors.getSelectedToken(state),
identity,
network,
+ isMascara,
}
}
@@ -98,7 +100,7 @@ TxView.prototype.renderButtons = function () {
}
TxView.prototype.render = function () {
- const { selectedAddress, identity, network } = this.props
+ const { selectedAddress, identity, network, isMascara } = this.props
return h('div.tx-view.flex-column', {
style: {},
@@ -107,6 +109,7 @@ TxView.prototype.render = function () {
h('div.flex-row.phone-visible', {
style: {
margin: '1em 0.9em',
+ justifyContent: 'space-between',
alignItems: 'center',
},
}, [
@@ -139,6 +142,10 @@ TxView.prototype.render = function () {
identity.name,
]),
+ !isMascara && h('div.open-in-browser', {
+ onClick: () => global.platform.openExtensionInBrowser(),
+ }, [h('img', { src: 'images/open.svg' })]),
+
]),
this.renderHeroBalance(),