diff --git a/src/modules/home/power-overview_module.tsx b/src/modules/home/power-overview_module.tsx index 1e987b0..56540ff 100644 --- a/src/modules/home/power-overview_module.tsx +++ b/src/modules/home/power-overview_module.tsx @@ -76,7 +76,7 @@ class PowerOverviewModule extends React.Component, getState: () => ApplicationState) { + return function(dispatch: ThunkDispatch) { dispatch(CrossCuttingActionCreator.SetLoginStatus(LoginStatus.INITIALS)); dispatch(resetProfileStore()); dispatch(ViewProfileActionCreator.ResetViewState()); @@ -38,7 +38,7 @@ export namespace CrossCuttingAsyncActionCreator { } export function AsyncRenewLogin(authResponse: AuthenticationResult) { - return function(dispatch: ThunkDispatch, getState: () => ApplicationState) { + return function(dispatch: ThunkDispatch) { // If the user is an admin => validate admin authentication if (isAdmin(authResponse)) { dispatch(AdminActionCreator.AsyncValidateAuthentication()); @@ -88,7 +88,7 @@ export namespace CrossCuttingAsyncActionCreator { } export function AsyncLogInUser(authResponse: AuthenticationResult) { - return function(dispatch: ThunkDispatch, getState: () => ApplicationState) { + return function(dispatch: ThunkDispatch) { if (isAdmin(authResponse)) { dispatch(AdminActionCreator.AsyncValidateAuthentication()); } diff --git a/src/reducers/view/ViewProfileActionCreator.ts b/src/reducers/view/ViewProfileActionCreator.ts index 818151b..707fbed 100644 --- a/src/reducers/view/ViewProfileActionCreator.ts +++ b/src/reducers/view/ViewProfileActionCreator.ts @@ -92,7 +92,7 @@ export namespace ViewProfileActionCreator { } export function AsyncCreateChangedViewProfile(initials: string, oldId: string, newName: string, newDescription: string, keepOld: boolean) { - return function (dispatch: redux.Dispatch, getState: () => ApplicationState) { + return function (dispatch: redux.Dispatch) { dispatch(CrossCuttingActionCreator.startRequest()); let body = { name: newName, @@ -307,7 +307,7 @@ export namespace ViewProfileActionCreator { } export function AsyncGetParentCategories(skill: ViewSkill) { - return function (dispatch: redux.Dispatch, getState: () => ApplicationState) { + return function (dispatch: redux.Dispatch) { viewProfileClient.getParentCategories(skill.name) .then((response) => dispatch(SetParentForSkill(response))) .catch((error) => console.error(error)) diff --git a/src/reducers/view/ViewProfileReducer.ts b/src/reducers/view/ViewProfileReducer.ts index 2934de2..f917e7c 100644 --- a/src/reducers/view/ViewProfileReducer.ts +++ b/src/reducers/view/ViewProfileReducer.ts @@ -3,7 +3,6 @@ import {isNullOrUndefined} from 'util'; import {ActionType} from '../ActionType'; import {ViewProfileActions} from './ViewProfileActions'; import {AbstractAction} from '../BaseActions'; -import {ViewCategory} from '../../model/view/ViewCategory'; export namespace ViewProfileReducer { import SetViewProfileAction = ViewProfileActions.SetViewProfileAction;