web client v1.0 (production)

This commit is contained in:
2020-10-08 21:29:06 +02:00
parent d0dab37649
commit 20c7dd18a7
22 changed files with 289 additions and 33 deletions

View File

@@ -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":