web client v1.0 (production)
This commit is contained in:
@@ -2,6 +2,8 @@ const dishes = (state = [], action) => {
|
||||
switch (action.type) {
|
||||
case "SET_DISHES":
|
||||
return (state = action.payload);
|
||||
case "SET_DISH":
|
||||
return [action.payload];
|
||||
case "ADD_DISH":
|
||||
return [...state, action.payload];
|
||||
case "CLEAR_DISHES":
|
||||
|
||||
Reference in New Issue
Block a user