This commit is contained in:
2020-08-16 17:04:17 +02:00
parent add6225d93
commit 2b378fab25
5 changed files with 115 additions and 34 deletions

View File

@@ -17,6 +17,7 @@ const initialState = {
registerResult: "",
loginResult: "",
},
tempData: {},
};
const data = (state = initialState, action) => {
@@ -105,6 +106,10 @@ const data = (state = initialState, action) => {
...state,
dialogs: { ...state.dialogs, newRestaurant: true },
});
case "SET_TEMP_DATA":
return (state = { ...state, tempData: action.payload });
case "CLEAR_TEMP_DATA":
return (state = { ...state, tempData: {} });
default:
return state;
}