diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-04-03 04:15:31 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-04-03 04:15:31 +0800 |
commit | 92f8157dfeffff8173f6abc896cad59ada9a48ef (patch) | |
tree | 295285751daf7e24e5f7838e9b426e48e627e55e /ui | |
parent | 6277a4c46aa2fd94f0fff047aff346d7f255224d (diff) | |
download | tangerine-wallet-browser-92f8157dfeffff8173f6abc896cad59ada9a48ef.tar tangerine-wallet-browser-92f8157dfeffff8173f6abc896cad59ada9a48ef.tar.gz tangerine-wallet-browser-92f8157dfeffff8173f6abc896cad59ada9a48ef.tar.bz2 tangerine-wallet-browser-92f8157dfeffff8173f6abc896cad59ada9a48ef.tar.lz tangerine-wallet-browser-92f8157dfeffff8173f6abc896cad59ada9a48ef.tar.xz tangerine-wallet-browser-92f8157dfeffff8173f6abc896cad59ada9a48ef.tar.zst tangerine-wallet-browser-92f8157dfeffff8173f6abc896cad59ada9a48ef.zip |
Add withRouter to I18nProvider component
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/i18n-provider.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/app/i18n-provider.js b/ui/app/i18n-provider.js index fe6d62c67..4ef618018 100644 --- a/ui/app/i18n-provider.js +++ b/ui/app/i18n-provider.js @@ -1,6 +1,8 @@ const { Component } = require('react') const connect = require('react-redux').connect const PropTypes = require('prop-types') +const { withRouter } = require('react-router-dom') +const { compose } = require('recompose') const t = require('../i18n-helper').getMessage class I18nProvider extends Component { @@ -32,5 +34,8 @@ const mapStateToProps = state => { } } -module.exports = connect(mapStateToProps)(I18nProvider) +module.exports = compose( + withRouter, + connect(mapStateToProps) +)(I18nProvider) |