fucking javascript
This commit is contained in:
parent
d26ef10958
commit
061e4ecb57
1 changed files with 2 additions and 2 deletions
|
@ -15,13 +15,13 @@ export const appReducer: Reducer<AppState, RootAction> = (state = INITIAL_STATE,
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
case "app/openModal":
|
case "app/openModal":
|
||||||
return {
|
return {
|
||||||
|
...state,
|
||||||
modal: action.id,
|
modal: action.id,
|
||||||
...state
|
|
||||||
};
|
};
|
||||||
case "app/closeModal":
|
case "app/closeModal":
|
||||||
return {
|
return {
|
||||||
|
...state,
|
||||||
modal: null,
|
modal: null,
|
||||||
...state
|
|
||||||
};
|
};
|
||||||
default:
|
default:
|
||||||
return state;
|
return state;
|
||||||
|
|
Loading…
Reference in a new issue