diff options
author | ditoaugusta <dt_ap@ymail.com> | 2020-03-25 00:24:33 +0700 |
---|---|---|
committer | ditoaugusta <dt_ap@ymail.com> | 2020-03-25 00:24:33 +0700 |
commit | 506fe663e2e3b9ffe9764f5c06b04524c4793534 (patch) | |
tree | 592318f13ce3d2e66294d95bb2b603cd20b43735 /modern/src/store | |
parent | 2f8ae58f4f5cde892b4b6981a83a37edc1422a2c (diff) | |
download | trackermap-web-506fe663e2e3b9ffe9764f5c06b04524c4793534.tar.gz trackermap-web-506fe663e2e3b9ffe9764f5c06b04524c4793534.tar.bz2 trackermap-web-506fe663e2e3b9ffe9764f5c06b04524c4793534.zip |
delete module subfolder. edit relative path.
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.js | 15 | ||||
-rw-r--r-- | modern/src/store/modules/index.js | 12 | ||||
-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 |