aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/pending-tx/confirm-deploy-contract.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-03-22 08:58:58 +0800
committerDan <danjm.com@gmail.com>2018-03-22 08:58:58 +0800
commitbe845fd190ee71d2bb6e641a5c23c453668268e3 (patch)
tree28d5267d8c149b0e323351a9ebfa222de9d33bdc /ui/app/components/pending-tx/confirm-deploy-contract.js
parentd24a0590d363dbe88d383c8faec8eb28809242f0 (diff)
parent04b1f8428b487663b276a541d739631954fe0be1 (diff)
downloadtangerine-wallet-browser-be845fd190ee71d2bb6e641a5c23c453668268e3.tar
tangerine-wallet-browser-be845fd190ee71d2bb6e641a5c23c453668268e3.tar.gz
tangerine-wallet-browser-be845fd190ee71d2bb6e641a5c23c453668268e3.tar.bz2
tangerine-wallet-browser-be845fd190ee71d2bb6e641a5c23c453668268e3.tar.lz
tangerine-wallet-browser-be845fd190ee71d2bb6e641a5c23c453668268e3.tar.xz
tangerine-wallet-browser-be845fd190ee71d2bb6e641a5c23c453668268e3.tar.zst
tangerine-wallet-browser-be845fd190ee71d2bb6e641a5c23c453668268e3.zip
Merge branch 'master' into i18n-translator-redux
Diffstat (limited to 'ui/app/components/pending-tx/confirm-deploy-contract.js')
-rw-r--r--ui/app/components/pending-tx/confirm-deploy-contract.js18
1 files changed, 11 insertions, 7 deletions
diff --git a/ui/app/components/pending-tx/confirm-deploy-contract.js b/ui/app/components/pending-tx/confirm-deploy-contract.js
index 6b912af7f..512aa793d 100644
--- a/ui/app/components/pending-tx/confirm-deploy-contract.js
+++ b/ui/app/components/pending-tx/confirm-deploy-contract.js
@@ -1,5 +1,5 @@
const { Component } = require('react')
-const connect = require('../../metamask-connect')
+const { connect } = require('react-redux')
const h = require('react-hyperscript')
const PropTypes = require('prop-types')
const actions = require('../../actions')
@@ -8,7 +8,9 @@ const ethUtil = require('ethereumjs-util')
const BN = ethUtil.BN
const hexToBn = require('../../../../app/scripts/lib/hex-to-bn')
const { conversionUtil } = require('../../conversion-util')
+const t = require('../../../i18n')
const SenderToRecipient = require('../sender-to-recipient')
+const NetworkDisplay = require('../network-display')
const { MIN_GAS_PRICE_HEX } = require('../send/send-constants')
@@ -243,9 +245,12 @@ class ConfirmDeployContract extends Component {
return (
h('.page-container', [
h('.page-container__header', [
- h('.page-container__back-button', {
- onClick: () => backToAccountDetail(selectedAddress),
- }, this.props.t('back')),
+ h('.page-container__header-row', [
+ h('span.page-container__back-button', {
+ onClick: () => backToAccountDetail(selectedAddress),
+ }, this.props.t('back')),
+ window.METAMASK_UI_TYPE === 'notification' && h(NetworkDisplay),
+ ]),
h('.page-container__title', this.props.t('confirmContract')),
h('.page-container__subtitle', this.props.t('pleaseReviewTransaction')),
]),
@@ -320,7 +325,6 @@ ConfirmDeployContract.propTypes = {
conversionRate: PropTypes.number,
currentCurrency: PropTypes.string,
selectedAddress: PropTypes.string,
- localeMessages: PropTypes.object,
}
const mapStateToProps = state => {
@@ -343,8 +347,8 @@ const mapDispatchToProps = dispatch => {
return {
backToAccountDetail: address => dispatch(actions.backToAccountDetail(address)),
cancelTransaction: ({ id }) => dispatch(actions.cancelTx({ id })),
- displayWarning: warning => actions.displayWarning(this.props.t(warning)),
+ displayWarning: warning => actions.displayWarning(t(warning)),
}
}
-module.exports = connect(mapStateToProps, mapDispatchToProps)(ConfirmDeployContract)
+module.exports = connect(mapStateToProps, mapDispatchToProps)(ConfirmDeployContract) \ No newline at end of file