Analytics added / NewRestaurant.js added
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ const initialState = {
|
||||
dialogs: {
|
||||
logIn: false,
|
||||
register: false,
|
||||
newRestaurant: true,
|
||||
contact: false,
|
||||
pricing: false,
|
||||
regulamin: false,
|
||||
|
||||
Reference in New Issue
Block a user