diff options
author | brunobar79 <brunobar79@gmail.com> | 2018-07-14 08:53:22 +0800 |
---|---|---|
committer | brunobar79 <brunobar79@gmail.com> | 2018-07-14 08:53:22 +0800 |
commit | d21d408d6429e645fda8b9dfcddbe22b7a44f8ca (patch) | |
tree | 53c268ebf360d7740e0be9cd04bee3e811792a96 /ui/app/metamask-connect.js | |
parent | 30258328587a8942c21fce609b7949d093cd594f (diff) | |
parent | 2f4698c130331db20a27576cb1c521c8ca5106e3 (diff) | |
download | tangerine-wallet-browser-d21d408d6429e645fda8b9dfcddbe22b7a44f8ca.tar tangerine-wallet-browser-d21d408d6429e645fda8b9dfcddbe22b7a44f8ca.tar.gz tangerine-wallet-browser-d21d408d6429e645fda8b9dfcddbe22b7a44f8ca.tar.bz2 tangerine-wallet-browser-d21d408d6429e645fda8b9dfcddbe22b7a44f8ca.tar.lz tangerine-wallet-browser-d21d408d6429e645fda8b9dfcddbe22b7a44f8ca.tar.xz tangerine-wallet-browser-d21d408d6429e645fda8b9dfcddbe22b7a44f8ca.tar.zst tangerine-wallet-browser-d21d408d6429e645fda8b9dfcddbe22b7a44f8ca.zip |
Merge branch 'develop' of github.com:MetaMask/metamask-extension into initial-trezor-support
Diffstat (limited to 'ui/app/metamask-connect.js')
-rw-r--r-- | ui/app/metamask-connect.js | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/ui/app/metamask-connect.js b/ui/app/metamask-connect.js deleted file mode 100644 index 81fa7e403..000000000 --- a/ui/app/metamask-connect.js +++ /dev/null @@ -1,27 +0,0 @@ -const connect = require('react-redux').connect -const t = require('../i18n-helper').getMessage - -const metamaskConnect = (mapStateToProps, mapDispatchToProps) => { - return connect( - _higherOrderMapStateToProps(mapStateToProps), - mapDispatchToProps - ) -} - -const _higherOrderMapStateToProps = (mapStateToProps) => { - let _t - let currentLocale - return (state, ownProps = {}) => { - const stateProps = mapStateToProps - ? mapStateToProps(state, ownProps) - : ownProps - if (currentLocale !== state.metamask.currentLocale) { - currentLocale = state.metamask.currentLocale - _t = t.bind(null, state.localeMessages) - } - stateProps.t = _t - return stateProps - } -} - -module.exports = metamaskConnect |