aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/sender-to-recipient.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/components/sender-to-recipient.js')
-rw-r--r--ui/app/components/sender-to-recipient.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/ui/app/components/sender-to-recipient.js b/ui/app/components/sender-to-recipient.js
index 4c3881668..6b9cd32ea 100644
--- a/ui/app/components/sender-to-recipient.js
+++ b/ui/app/components/sender-to-recipient.js
@@ -1,6 +1,6 @@
const { Component } = require('react')
const h = require('react-hyperscript')
-const connect = require('../metamask-connect')
+const connect = require('react-redux').connect
const PropTypes = require('prop-types')
const Identicon = require('./identicon')
@@ -21,7 +21,7 @@ class SenderToRecipient extends Component {
this.renderRecipientIcon(),
h(
'.sender-to-recipient__name.sender-to-recipient__recipient-name',
- recipientName || this.props.t('newContract')
+ recipientName || this.context.t('newContract')
),
])
)
@@ -64,4 +64,9 @@ SenderToRecipient.propTypes = {
t: PropTypes.func,
}
+SenderToRecipient.contextTypes = {
+ t: PropTypes.func,
+}
+
module.exports = connect()(SenderToRecipient)
+