summaryrefslogtreecommitdiffhomepage
path: root/app/containers/AccountPage.js
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@codeispoetry.ru>2017-05-24 18:09:36 +0100
committerAndrej Mihajlov <and@codeispoetry.ru>2017-05-27 13:37:34 +0100
commit0cd424fb094f82029f2a2e34bfd16ee8e5e87b10 (patch)
tree010e48f769c5f687daca1499026745eaa7e961ea /app/containers/AccountPage.js
parentf0eeffed6cfd055cf1aa1d23d240a0a8ded42466 (diff)
downloadmullvadvpn-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.js5
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])
};
};