Add basic 'workloads' Redux app

This commit is contained in:
James Greenaway
2019-01-28 18:21:58 +00:00
parent e1a3f27d8f
commit 986cf86403
13 changed files with 231 additions and 210 deletions

18
src/state/reducers.ts Normal file
View File

@@ -0,0 +1,18 @@
import { combineReducers } from 'redux';
import {
Store as WorkloadsStore,
Action as WorkloadActions,
reducer as workloadReducer,
} from './workloads';
export type Action = WorkloadActions;
export interface Store {
workloads: WorkloadsStore;
}
export const reducers = combineReducers<Store, Action>({
workloads: workloadReducer,
});