aboutsummaryrefslogtreecommitdiff
path: root/modern/src/store
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/store')
-rw-r--r--modern/src/store/devices.js (renamed from modern/src/store/modules/devices.js)0
-rw-r--r--modern/src/store/index.js15
-rw-r--r--modern/src/store/modules/index.js12
-rw-r--r--modern/src/store/positions.js (renamed from modern/src/store/modules/positions.js)0
4 files changed, 12 insertions, 15 deletions
diff --git a/modern/src/store/modules/devices.js b/modern/src/store/devices.js
index 0d96e98d..0d96e98d 100644
--- a/modern/src/store/modules/devices.js
+++ b/modern/src/store/devices.js
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 });
diff --git a/modern/src/store/modules/index.js b/modern/src/store/modules/index.js
deleted file mode 100644
index e2037c72..00000000
--- a/modern/src/store/modules/index.js
+++ /dev/null
@@ -1,12 +0,0 @@
-import { combineReducers } from '@reduxjs/toolkit';
-
-import { devicesReducer as devices } from './devices';
-import { positionsReducer as positions } from './positions';
-
-export const rootReducer = combineReducers({
- devices,
- positions,
-});
-
-export { devicesActions } from './devices';
-export { positionsActions } from './positions';
diff --git a/modern/src/store/modules/positions.js b/modern/src/store/positions.js
index 1df468cd..1df468cd 100644
--- a/modern/src/store/modules/positions.js
+++ b/modern/src/store/positions.js