index.js
1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/**
* # 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 outOfStock from './outOfStock/outOfStockReducer'
import deliverGoods from './deliverGoods/deliverGoodsReducer'
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,
outOfStock,
deliverGoods,
});
export default rootReducer;