diff options
Diffstat (limited to 'modern/src/store/index.js')
-rw-r--r-- | modern/src/store/index.js | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/modern/src/store/index.js b/modern/src/store/index.js index c981c136..86de31a9 100644 --- a/modern/src/store/index.js +++ b/modern/src/store/index.js @@ -1,5 +1,14 @@ -import { configureStore } from '@reduxjs/toolkit'; +import { combineReducers, configureStore } from '@reduxjs/toolkit'; -import { rootReducer } from './modules'; +import { devicesReducer as devices } from './devices'; +import { positionsReducer as positions } from './positions'; -export default configureStore({ reducer: rootReducer }); +const reducer = combineReducers({ + devices, + positions, +}); + +export { devicesActions } from './devices'; +export { positionsActions } from './positions'; + +export default configureStore({ reducer }); |