forked from santosfamilyfoundation/RuinaMain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
store.js
29 lines (26 loc) · 968 Bytes
/
store.js
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
import { createStore, combineReducers, applyMiddleware, compose } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';
import storyReducer from './reducers/StoryReducer';
import mapReducer from './reducers/MapReducer';
import photosReducer from './reducers/PhotosReducer';
import quickquizReducer from './reducers/QuickQuizReducer';
import vehicleReducer from './reducers/VehicleReducer';
import nonmotoristReducer from './reducers/NonmotoristReducer';
import driverReducer from './reducers/DriverReducer';
import passengerReducer from './reducers/PassengerReducer';
import roadReducer from './reducers/RoadReducer';
const rootReducer = combineReducers({
storyReducer,
mapReducer,
photosReducer,
quickquizReducer,
vehicleReducer,
nonmotoristReducer,
driverReducer,
passengerReducer,
roadReducer,
});
const configureStore = () => {
return createStore(rootReducer, composeWithDevTools());
}
export default configureStore;