new look / search list / restaurant view
This commit is contained in:
12
src/reducers/restaurant.js
Normal file
12
src/reducers/restaurant.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const restaurant = (state = {}, action) => {
|
||||
switch (action.type) {
|
||||
case "SET_RESTAURANT":
|
||||
return (state = action.payload);
|
||||
case "CLEAR_RESTAURANT":
|
||||
return (state = {});
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
|
||||
export default restaurant;
|
||||
Reference in New Issue
Block a user