aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/tx-view.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-03-30 10:28:45 +0800
committerDan <danjm.com@gmail.com>2018-03-30 10:28:45 +0800
commit893f82491d549c9d61dfa1fb30ae1954c4efab68 (patch)
tree3c73dd4c565c773341a44ddfd8d23101d31d4ad3 /ui/app/components/tx-view.js
parenta4594f6838a9ff38a9a6f1998850b27beebb2fbb (diff)
parent9d4be1842e7c56e3bfde529ff555dcae8dec3dbd (diff)
downloadtangerine-wallet-browser-893f82491d549c9d61dfa1fb30ae1954c4efab68.tar
tangerine-wallet-browser-893f82491d549c9d61dfa1fb30ae1954c4efab68.tar.gz
tangerine-wallet-browser-893f82491d549c9d61dfa1fb30ae1954c4efab68.tar.bz2
tangerine-wallet-browser-893f82491d549c9d61dfa1fb30ae1954c4efab68.tar.lz
tangerine-wallet-browser-893f82491d549c9d61dfa1fb30ae1954c4efab68.tar.xz
tangerine-wallet-browser-893f82491d549c9d61dfa1fb30ae1954c4efab68.tar.zst
tangerine-wallet-browser-893f82491d549c9d61dfa1fb30ae1954c4efab68.zip
Merge branch 'master' into i3471-checkbalanceonconfirmscreen
Diffstat (limited to 'ui/app/components/tx-view.js')
-rw-r--r--ui/app/components/tx-view.js14
1 files changed, 10 insertions, 4 deletions
diff --git a/ui/app/components/tx-view.js b/ui/app/components/tx-view.js
index 8b0cc890a..ca24e813f 100644
--- a/ui/app/components/tx-view.js
+++ b/ui/app/components/tx-view.js
@@ -1,5 +1,6 @@
const Component = require('react').Component
-const connect = require('../metamask-connect')
+const PropTypes = require('prop-types')
+const connect = require('react-redux').connect
const h = require('react-hyperscript')
const ethUtil = require('ethereumjs-util')
const inherits = require('util').inherits
@@ -10,8 +11,13 @@ const BalanceComponent = require('./balance-component')
const TxList = require('./tx-list')
const Identicon = require('./identicon')
+TxView.contextTypes = {
+ t: PropTypes.func,
+}
+
module.exports = connect(mapStateToProps, mapDispatchToProps)(TxView)
+
function mapStateToProps (state) {
const sidebarOpen = state.appState.sidebarOpen
const isMascara = state.appState.isMascara
@@ -72,21 +78,21 @@ TxView.prototype.renderButtons = function () {
onClick: () => showModal({
name: 'DEPOSIT_ETHER',
}),
- }, this.props.t('deposit')),
+ }, this.context.t('deposit')),
h('button.btn-primary.hero-balance-button', {
style: {
marginLeft: '0.8em',
},
onClick: showSendPage,
- }, this.props.t('send')),
+ }, this.context.t('send')),
])
)
: (
h('div.flex-row.flex-center.hero-balance-buttons', [
h('button.btn-primary.hero-balance-button', {
onClick: showSendTokenPage,
- }, this.props.t('send')),
+ }, this.context.t('send')),
])
)
}