ampache_react/app/reducers/index.js

25 lines
534 B
JavaScript
Raw Normal View History

2016-07-07 23:23:18 +02:00
import { routerReducer as routing } from "react-router-redux";
import { combineReducers } from "redux";
import auth from "./auth";
import paginate from "./paginate";
import webplayer from "./webplayer";
2016-07-07 23:23:18 +02:00
import * as ActionTypes from "../actions";
// Updates the pagination data for different actions.
const api = paginate([
ActionTypes.API_REQUEST,
ActionTypes.API_SUCCESS,
ActionTypes.API_FAILURE
]);
2016-07-07 23:23:18 +02:00
const rootReducer = combineReducers({
routing,
auth,
api,
webplayer
2016-07-07 23:23:18 +02:00
});
export default rootReducer;