Analytics added / NewRestaurant.js added

This commit is contained in:
2020-08-10 20:14:43 +02:00
parent 769be397e5
commit 48bb74e5f8
26 changed files with 118 additions and 48 deletions

View File

@@ -2,16 +2,14 @@ const appModeReducer = (state = "init", action) => {
switch (action.type) {
case "APP_INIT":
return (state = "init");
case "APP_EMPTY":
return (state = "empty");
case "APP_SEARCH_RESULTS":
return (state = "search results");
case "APP_RESTAURANT":
return (state = "restaurant");
case "APP_DISH":
return (state = "dish");
case "APP_ADD_RESTAURANT":
return (state = "add restaurant");
case "APP_ADD_DISH":
return (state = "add dish");
default:
return state;
}

View File

@@ -8,6 +8,7 @@ const initialState = {
dialogs: {
logIn: false,
register: false,
newRestaurant: true,
contact: false,
pricing: false,
regulamin: false,