pitaya-launcher/js/store/index.js

19 lines
488 B
JavaScript
Raw Normal View History

var redux = require('redux');
var thunkMiddleware = require('redux-thunk');
var reducers = require('./reducers');
2015-09-11 16:25:45 +02:00
var loggerMiddleware = require('./middlewares/logger');
var createStore = redux.applyMiddleware(
2015-09-11 16:25:45 +02:00
thunkMiddleware,
loggerMiddleware
)(redux.createStore);
var appReducer = redux.combineReducers({
profile: reducers.profile,
processOpts: reducers.processOpts,
2015-09-16 17:26:56 +02:00
desktopApps: reducers.desktopApps,
theme: reducers.theme
});
module.exports = createStore(appReducer);