fixed reducer placement for user

This commit is contained in:
Fedor Katurov 2019-12-30 11:05:04 +07:00
parent f814fe6c42
commit 813fded927
20 changed files with 18 additions and 18 deletions

0
src/redux/map/index.ts Normal file
View file

View file

@ -4,7 +4,7 @@ import { persistStore, persistReducer } from 'redux-persist';
import storage from 'redux-persist/lib/storage';
import createSagaMiddleware from 'redux-saga';
import { userReducer, IRootReducer } from '$redux/user/reducer';
import { userReducer, IRootReducer } from '$redux/user';
import { userSaga } from '$redux/user/sagas';
import { createBrowserHistory } from 'history';
import { locationChanged } from '$redux/user/actions';

View file

@ -1,6 +1,6 @@
import { ACTIONS } from '$redux/user/constants';
import { IUser } from "$constants/auth";
import { IRootState } from "$redux/user/reducer";
import { IRootState } from "$redux/user";
export const setUser = (user: IUser) => ({ type: ACTIONS.SET_USER, user });
export const userLogout = () => ({ type: ACTIONS.USER_LOGOUT });

View file

@ -85,7 +85,7 @@ import { DEFAULT_PROVIDER } from "$constants/providers";
import { DIALOGS, TABS } from "$constants/dialogs";
import * as ActionCreators from "$redux/user/actions";
import { IRootState } from "$redux/user/reducer";
import { IRootState } from "$redux/user";
import { downloadGPXTrack, getGPXString } from "$utils/gpx";
import { Unwrap } from "$utils/middleware";
import { IState } from "$redux/store";