aboutsummaryrefslogtreecommitdiff
path: root/modern/src/store
diff options
context:
space:
mode:
authorAshutosh Bishnoi <mail2bishnoi@gmail.com>2021-04-27 11:18:42 +0530
committerAshutosh Bishnoi <mail2bishnoi@gmail.com>2021-04-27 11:18:42 +0530
commit127a2628b61b0a151eb5225af7ecaf483f907665 (patch)
treecc596678a30c0c50d1a99831e30839cd964ed501 /modern/src/store
parent2d5ec8721c2d9ae3d519dd5ff267a05b5f1ab96b (diff)
downloadetbsa-traccar-web-127a2628b61b0a151eb5225af7ecaf483f907665.tar.gz
etbsa-traccar-web-127a2628b61b0a151eb5225af7ecaf483f907665.tar.bz2
etbsa-traccar-web-127a2628b61b0a151eb5225af7ecaf483f907665.zip
Deleting somne of the stores
Diffstat (limited to 'modern/src/store')
-rw-r--r--modern/src/store/calendars.js16
-rw-r--r--modern/src/store/commands.js16
-rw-r--r--modern/src/store/computedAttributes.js16
-rw-r--r--modern/src/store/index.js13
-rw-r--r--modern/src/store/notifications.js16
5 files changed, 0 insertions, 77 deletions
diff --git a/modern/src/store/calendars.js b/modern/src/store/calendars.js
deleted file mode 100644
index 3aa4d89..0000000
--- a/modern/src/store/calendars.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import { createSlice } from '@reduxjs/toolkit';
-
-const { reducer, actions } = createSlice({
- name: 'calendars',
- initialState: {
- items: {},
- },
- reducers: {
- update(state, action) {
- action.payload.forEach(item => state.items[item['id']] = item);
- },
- }
-});
-
-export { actions as calendarsActions };
-export { reducer as calendarsReducer };
diff --git a/modern/src/store/commands.js b/modern/src/store/commands.js
deleted file mode 100644
index d18d609..0000000
--- a/modern/src/store/commands.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import { createSlice } from '@reduxjs/toolkit';
-
-const { reducer, actions } = createSlice({
- name: 'commands',
- initialState: {
- items: {},
- },
- reducers: {
- update(state, action) {
- action.payload.forEach(item => state.items[item['id']] = item);
- },
- }
-});
-
-export { actions as commandsActions };
-export { reducer as commandsReducer };
diff --git a/modern/src/store/computedAttributes.js b/modern/src/store/computedAttributes.js
deleted file mode 100644
index d9e3531..0000000
--- a/modern/src/store/computedAttributes.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import { createSlice } from '@reduxjs/toolkit';
-
-const { reducer, actions } = createSlice({
- name: 'computedAttributes',
- initialState: {
- items: {},
- },
- reducers: {
- update(state, action) {
- action.payload.forEach(item => state.items[item['id']] = item);
- },
- }
-});
-
-export { actions as computedAttributesActions };
-export { reducer as computedAttributesReducer };
diff --git a/modern/src/store/index.js b/modern/src/store/index.js
index 9163e44..6e2bb20 100644
--- a/modern/src/store/index.js
+++ b/modern/src/store/index.js
@@ -7,10 +7,6 @@ import { geofencesReducer as geofences } from './geofences';
import { groupsReducer as groups } from './groups';
import { driversReducer as drivers } from './drivers';
import { maintenancesReducer as maintenances } from './maintenances';
-import { calendarsReducer as calendars } from './calendars';
-import { computedAttributesReducer as computedAttributes } from './computedAttributes';
-import { commandsReducer as commands } from './commands';
-import { notificationsReducer as notifications } from './notifications';
const reducer = combineReducers({
session,
@@ -20,11 +16,6 @@ const reducer = combineReducers({
groups,
drivers,
maintenances,
- calendars,
- computedAttributes,
- commands,
- notifications,
-
});
export { sessionActions } from './session';
@@ -34,9 +25,5 @@ export { geofencesActions } from './geofences';
export { groupsActions } from './groups';
export { driversActions } from './drivers';
export { maintenancesActions } from './maintenances';
-export { calendarsActions } from './calendars';
-export { computedAttributesActions } from './computedAttributes';
-export { commandsActions } from './commands';
-export { notificationsActions } from './notifications';
export default configureStore({ reducer });
diff --git a/modern/src/store/notifications.js b/modern/src/store/notifications.js
deleted file mode 100644
index be8a989..0000000
--- a/modern/src/store/notifications.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import { createSlice } from '@reduxjs/toolkit';
-
-const { reducer, actions } = createSlice({
- name: 'notifications',
- initialState: {
- items: {},
- },
- reducers: {
- update(state, action) {
- action.payload.forEach(item => state.items[item['id']] = item);
- },
- }
-});
-
-export { actions as notificationsActions };
-export { reducer as notificationsReducer };