Initial structure
This commit is contained in:
parent
ecb354cf6e
commit
874bd18f11
14 changed files with 157 additions and 1 deletions
11
src/store/reducers.ts
Normal file
11
src/store/reducers.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { IState } from "./types";
|
||||
import { Action } from "./actions";
|
||||
import { GameAction, gameReducer } from "./game";
|
||||
|
||||
function reducer(state: IState, action: Action): IState {
|
||||
return {
|
||||
game: gameReducer(state.game, action as GameAction),
|
||||
};
|
||||
}
|
||||
|
||||
export { reducer };
|
||||
Loading…
Add table
Add a link
Reference in a new issue