index.js 1.19 KB
/**
 * # reducers
 *
 * This class combines all the reducers into one
 *
 */
'use strict';
/**
 * ## Imports
 *
 * our 4 reducers
 */
import device from './device/deviceReducer';
import guide from './guide/guideReducer';
import home from './home/homeReducer';
import message from './message/messageReducer';
import user from './user/userReducer';
import stockStats from './stockStats/stockStatsReducer';
import actStmt from './accountSettlement/accountSettlementReducer';
import saleStats from './saleStatistics/saleStatisticsReducer';
import deliveryStats from './deliveryStats/deliveryStatsReducer';
import requestStats from './requestStats/requestStatsReducer';
import refoundStats from './refoundStatistics/refoundStatisticsReducer'
import transferShipment from './transferShipment/transferShipmentReducer'

import { combineReducers } from 'redux';

/**
 * ## CombineReducers
 *
 * the rootReducer will call each and every reducer with the state and action
 * EVERY TIME there is a basic action
 */
const rootReducer = combineReducers({
	device,
	guide,
	home,
	message,
	user,
	actStmt,
	stockStats,
	saleStats,
	deliveryStats,
	requestStats,
	refoundStats,
	transferShipment,
});

export default rootReducer;