diff options
| author | Andrej Mihajlov <and@codeispoetry.ru> | 2017-05-24 18:09:36 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@codeispoetry.ru> | 2017-05-27 13:37:34 +0100 |
| commit | 0cd424fb094f82029f2a2e34bfd16ee8e5e87b10 (patch) | |
| tree | 010e48f769c5f687daca1499026745eaa7e961ea /app/containers/AccountPage.js | |
| parent | f0eeffed6cfd055cf1aa1d23d240a0a8ded42466 (diff) | |
| download | mullvadvpn-0cd424fb094f82029f2a2e34bfd16ee8e5e87b10.tar.xz mullvadvpn-0cd424fb094f82029f2a2e34bfd16ee8e5e87b10.zip | |
Migrate to react-router v4 and react-router-redux v5-alpha
Diffstat (limited to 'app/containers/AccountPage.js')
| -rw-r--r-- | app/containers/AccountPage.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/containers/AccountPage.js b/app/containers/AccountPage.js index bc5e3d3b73..5e695e1d4a 100644 --- a/app/containers/AccountPage.js +++ b/app/containers/AccountPage.js @@ -1,5 +1,6 @@ import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; +import { push } from 'react-router-redux'; import Account from '../components/Account'; import userActions from '../actions/user'; import { shell } from 'electron'; @@ -13,8 +14,8 @@ const mapDispatchToProps = (dispatch, props) => { const { logout } = bindActionCreators(userActions, dispatch); return { onLogout: () => logout(props.backend), - onClose: () => props.router.push('/settings'), - onViewAccount: () => props.router.push('/settings/account'), + onClose: () => dispatch(push('/settings')), + onViewAccount: () => dispatch(push('/settings/account')), onExternalLink: (type) => shell.openExternal(links[type]) }; }; |
