summaryrefslogtreecommitdiffhomepage
path: root/gui/src/renderer/containers
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2021-06-16 11:33:06 +0200
committerOskar Nyberg <oskar@mullvad.net>2021-06-28 09:00:49 +0200
commitc006e28144eff8f328c820992b8e4dd82d0ae0cb (patch)
tree803c3a52580a52df99ea9ffb1f73e1e4e44d3d4f /gui/src/renderer/containers
parentbaf7ccb26f31164c463ced344c5bc398ececdf89 (diff)
downloadmullvadvpn-c006e28144eff8f328c820992b8e4dd82d0ae0cb.tar.xz
mullvadvpn-c006e28144eff8f328c820992b8e4dd82d0ae0cb.zip
Improve navigation and transitions for out of time view
Diffstat (limited to 'gui/src/renderer/containers')
-rw-r--r--gui/src/renderer/containers/ExpiredAccountErrorViewContainer.tsx8
1 files changed, 1 insertions, 7 deletions
diff --git a/gui/src/renderer/containers/ExpiredAccountErrorViewContainer.tsx b/gui/src/renderer/containers/ExpiredAccountErrorViewContainer.tsx
index 4d3d8c1271..6297a17f42 100644
--- a/gui/src/renderer/containers/ExpiredAccountErrorViewContainer.tsx
+++ b/gui/src/renderer/containers/ExpiredAccountErrorViewContainer.tsx
@@ -1,26 +1,20 @@
import { connect } from 'react-redux';
import { RouteComponentProps, withRouter } from 'react-router';
-import { bindActionCreators } from 'redux';
import log from '../../shared/logging';
import ExpiredAccountErrorView from '../components/ExpiredAccountErrorView';
-import accountActions from '../redux/account/actions';
import withAppContext, { IAppContext } from '../context';
import { IReduxState, ReduxDispatch } from '../redux/store';
const mapStateToProps = (state: IReduxState) => ({
accountToken: state.account.accountToken,
- accountExpiry: state.account.expiry,
loginState: state.account.status,
tunnelState: state.connection.status,
isBlocked: state.connection.isBlocked,
blockWhenDisconnected: state.settings.blockWhenDisconnected,
});
-const mapDispatchToProps = (dispatch: ReduxDispatch, props: RouteComponentProps & IAppContext) => {
- const account = bindActionCreators(accountActions, dispatch);
+const mapDispatchToProps = (_dispatch: ReduxDispatch, props: RouteComponentProps & IAppContext) => {
return {
- // Changes login method from "new_account" to "existing_account"
- hideWelcomeView: () => account.loggedIn(),
onExternalLinkWithAuth: (url: string) => props.app.openLinkWithAuth(url),
onDisconnect: async () => {
try {