mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-14 05:23:06 +00:00
Added mocks for all model types, added CollectionDataService
This commit is contained in:
17
src/app/core/core.reducers.ts
Normal file
17
src/app/core/core.reducers.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { combineReducers } from "@ngrx/store";
|
||||
import {
|
||||
CollectionDataState,
|
||||
collectionDataReducer
|
||||
} from "./data-services/collection/collection-data.reducer";
|
||||
|
||||
export interface CoreState {
|
||||
collectionData: CollectionDataState
|
||||
}
|
||||
|
||||
export const reducers = {
|
||||
collectionData: collectionDataReducer,
|
||||
};
|
||||
|
||||
export function coreReducer(state: any, action: any) {
|
||||
return combineReducers(reducers)(state, action);
|
||||
}
|
Reference in New Issue
Block a user