//notifications //delete restaurant //change picture //redesigned data store
24 lines
701 B
JavaScript
24 lines
701 B
JavaScript
import { combineReducers } from "redux";
|
|
import { connectRouter } from "connected-react-router";
|
|
import autoCompleteReducer from "./autoComplete";
|
|
import searchResults from "./searchResults";
|
|
import searchQuery from "./searchQuery";
|
|
import restaurant from "./restaurant";
|
|
import dishes from "./dishes";
|
|
import data from "./data";
|
|
import notifications from "./notifications";
|
|
|
|
const rootReducer = (history) =>
|
|
combineReducers({
|
|
router: connectRouter(history),
|
|
autocomplete: autoCompleteReducer,
|
|
searchResults: searchResults,
|
|
searchQuery: searchQuery,
|
|
restaurant: restaurant,
|
|
dishes: dishes,
|
|
data: data,
|
|
notifications: notifications,
|
|
});
|
|
|
|
export default rootReducer;
|