Add Restaurant work

This commit is contained in:
2020-08-11 21:16:27 +02:00
parent 48bb74e5f8
commit e4a4d3951d
10 changed files with 487 additions and 18 deletions

View File

@@ -95,6 +95,16 @@ const data = (state = initialState, action) => {
...state,
dialogs: { ...state.dialogs, loginResult: action.payload },
});
case "DIALOG_NEWRESTAURANT_HIDE":
return (state = {
...state,
dialogs: { ...state.dialogs, newRestaurant: false },
});
case "DIALOG_NEWRESTAURANT_SHOW":
return (state = {
...state,
dialogs: { ...state.dialogs, newRestaurant: true },
});
default:
return state;
}