Connect project explorer to the store
[arvados-workbench2.git] / src / store / store.ts
index 6b9c31ff4ee3bfca4426d3364b8440625c4d6e19..9d2a95359e1287ec2b1ff90afe34aa3d79c19f94 100644 (file)
@@ -9,6 +9,7 @@ import { History } from "history";
 import projectsReducer, { ProjectState } from "./project/project-reducer";
 import authReducer, { AuthState } from "./auth/auth-reducer";
 import collectionsReducer from "./collection/collection-reducer";
+import dataExplorerReducer, { DataExplorerState } from './data-explorer/data-explorer-reducer';
 
 const composeEnhancers =
     (process.env.NODE_ENV === 'development' &&
@@ -19,21 +20,23 @@ export interface RootState {
     auth: AuthState;
     projects: ProjectState;
     router: RouterState;
+    dataExplorer: DataExplorerState;
 }
 
 const rootReducer = combineReducers({
     auth: authReducer,
     projects: projectsReducer,
     collections: collectionsReducer,
-    router: routerReducer
+    router: routerReducer,
+    dataExplorer: dataExplorerReducer
 });
 
 
-export default function configureStore(initialState: RootState, history: History) {
+export default function configureStore(history: History) {
     const middlewares: Middleware[] = [
         routerMiddleware(history),
         thunkMiddleware
     ];
     const enhancer = composeEnhancers(applyMiddleware(...middlewares));
-    return createStore(rootReducer, initialState!, enhancer);
+    return createStore(rootReducer, enhancer);
 }