ampache_react/app/reducers/index.js

33 lines
656 B
JavaScript
Raw Normal View History

/**
*
*/
// NPM imports
2016-07-07 23:23:18 +02:00
import { routerReducer as routing } from "react-router-redux";
import { combineReducers } from "redux";
// Import all the available reducers
2016-07-07 23:23:18 +02:00
import auth from "./auth";
import entities from "./entities";
import paginatedMaker from "./paginated";
import webplayer from "./webplayer";
2016-07-07 23:23:18 +02:00
// Actions
2016-07-07 23:23:18 +02:00
import * as ActionTypes from "../actions";
// Build paginated reducer
const paginated = paginatedMaker([
ActionTypes.API_REQUEST,
ActionTypes.API_SUCCESS,
ActionTypes.API_FAILURE,
]);
2016-07-07 23:23:18 +02:00
// Export the combined reducers
export default combineReducers({
2016-07-07 23:23:18 +02:00
routing,
auth,
entities,
paginated,
webplayer,
2016-07-07 23:23:18 +02:00
});