Implement reducer and state mapping functions
[arvados-workbench2.git] / src / store / store.ts
index a5e22e8eec7dfc8709c4f9617e0a8795fd7db5a9..33e537c019641582ca9b0be76223cd8884fd1027 100644 (file)
@@ -17,6 +17,9 @@ import { contextMenuReducer, ContextMenuState } from './context-menu/context-men
 import { favoritePanelMiddleware } from "./favorite-panel/favorite-panel-middleware";
 import { reducer as formReducer } from 'redux-form';
 import { FavoritesState, favoritesReducer } from './favorites/favorites-reducer';
+import { snackbarReducer, SnackbarState } from './snackbar/snackbar-reducer';
+import { CollectionPanelFilesState } from './collection-panel/collection-panel-files/collection-panel-files-state';
+import { collectionPanelFilesReducer } from './collection-panel/collection-panel-files/collections-panel-files-reducer';
 
 const composeEnhancers =
     (process.env.NODE_ENV === 'development' &&
@@ -32,6 +35,8 @@ export interface RootState {
     detailsPanel: DetailsPanelState;
     contextMenu: ContextMenuState;
     favorites: FavoritesState;
+    snackbar: SnackbarState;
+    collectionPanelFiles: CollectionPanelFilesState;
 }
 
 const rootReducer = combineReducers({
@@ -44,6 +49,8 @@ const rootReducer = combineReducers({
     contextMenu: contextMenuReducer,
     form: formReducer,
     favorites: favoritesReducer,
+    snackbar: snackbarReducer,
+    collectionPanelFiles: collectionPanelFilesReducer,
 });