mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-05-04 17:16:40 +07:00
removed upload redux store
This commit is contained in:
parent
140e36b6b7
commit
95b92b643f
38 changed files with 398 additions and 691 deletions
src/redux
|
@ -11,9 +11,6 @@ import auth from '~/redux/auth';
|
|||
import authSaga from '~/redux/auth/sagas';
|
||||
import { IAuthState } from '~/redux/auth/types';
|
||||
|
||||
import uploads, { IUploadState } from '~/redux/uploads/reducer';
|
||||
import uploadSaga from '~/redux/uploads/sagas';
|
||||
|
||||
import player, { IPlayerState } from '~/redux/player/reducer';
|
||||
import playerSaga from '~/redux/player/sagas';
|
||||
|
||||
|
@ -41,7 +38,6 @@ const playerPersistConfig: PersistConfig = {
|
|||
export interface IState {
|
||||
auth: IAuthState;
|
||||
router: RouterState;
|
||||
uploads: IUploadState;
|
||||
player: IPlayerState;
|
||||
messages: IMessagesState;
|
||||
}
|
||||
|
@ -60,7 +56,6 @@ export const store = createStore(
|
|||
combineReducers<IState>({
|
||||
auth: persistReducer(authPersistConfig, auth),
|
||||
router: connectRouter(history),
|
||||
uploads,
|
||||
player: persistReducer(playerPersistConfig, player),
|
||||
messages,
|
||||
}),
|
||||
|
@ -72,7 +67,6 @@ export function configureStore(): {
|
|||
persistor: Persistor;
|
||||
} {
|
||||
sagaMiddleware.run(authSaga);
|
||||
sagaMiddleware.run(uploadSaga);
|
||||
sagaMiddleware.run(playerSaga);
|
||||
sagaMiddleware.run(messagesSaga);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue