diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2017-01-05 06:30:14 +0800 |
---|---|---|
committer | Kevin Serrano <kevgagser@gmail.com> | 2017-01-05 06:30:14 +0800 |
commit | a8a37e4d40ac543025f7f7d111a59dc17c6f3a8c (patch) | |
tree | b858d07658d3f999e6e3396c9fa9bd9ef77dad3b /ui/app/conf-tx.js | |
parent | c22da8450cf5014fb2bf3c96e0df88c70aa39465 (diff) | |
download | tangerine-wallet-browser-a8a37e4d40ac543025f7f7d111a59dc17c6f3a8c.tar tangerine-wallet-browser-a8a37e4d40ac543025f7f7d111a59dc17c6f3a8c.tar.gz tangerine-wallet-browser-a8a37e4d40ac543025f7f7d111a59dc17c6f3a8c.tar.bz2 tangerine-wallet-browser-a8a37e4d40ac543025f7f7d111a59dc17c6f3a8c.tar.lz tangerine-wallet-browser-a8a37e4d40ac543025f7f7d111a59dc17c6f3a8c.tar.xz tangerine-wallet-browser-a8a37e4d40ac543025f7f7d111a59dc17c6f3a8c.tar.zst tangerine-wallet-browser-a8a37e4d40ac543025f7f7d111a59dc17c6f3a8c.zip |
Make network somewhat more modular, add new network indicator.
Diffstat (limited to 'ui/app/conf-tx.js')
-rw-r--r-- | ui/app/conf-tx.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/app/conf-tx.js b/ui/app/conf-tx.js index 0b1dcac45..f3aad0fb8 100644 --- a/ui/app/conf-tx.js +++ b/ui/app/conf-tx.js @@ -4,6 +4,7 @@ const ReactCSSTransitionGroup = require('react-addons-css-transition-group') const h = require('react-hyperscript') const connect = require('react-redux').connect const actions = require('./actions') +const NetworkIndicator = require('./components/network') const txHelper = require('../lib/tx-helper') const isPopupOrNotification = require('../../app/scripts/lib/is-popup-or-notification') const ethUtil = require('ethereumjs-util') @@ -24,6 +25,7 @@ function mapStateToProps (state) { index: state.appState.currentView.context, warning: state.appState.warning, network: state.metamask.network, + provider: state.metamask.provider, } } @@ -36,6 +38,7 @@ ConfirmTxScreen.prototype.render = function () { var state = this.props var network = state.network + var provider = state.provider var unconfTxs = state.unconfTxs var unconfMsgs = state.unconfMsgs var unconfTxList = txHelper(unconfTxs, unconfMsgs, network) @@ -53,6 +56,10 @@ ConfirmTxScreen.prototype.render = function () { !isNotification ? h('i.fa.fa-arrow-left.fa-lg.cursor-pointer', { onClick: this.goHome.bind(this), }) : null, + isNotification ? h(NetworkIndicator, { + network: network, + provider: provider, + }) : null, h('h2.page-subtitle', 'Confirm Transaction'), ]), |