aboutsummaryrefslogtreecommitdiff
path: root/modern/src/store/events.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/store/events.js')
-rw-r--r--modern/src/store/events.js23
1 files changed, 0 insertions, 23 deletions
diff --git a/modern/src/store/events.js b/modern/src/store/events.js
deleted file mode 100644
index 35e7081e..00000000
--- a/modern/src/store/events.js
+++ /dev/null
@@ -1,23 +0,0 @@
-import { createSlice } from '@reduxjs/toolkit';
-
-const { reducer, actions } = createSlice({
- name: 'events',
- initialState: {
- items: [],
- },
- reducers: {
- add(state, action) {
- state.items.unshift(...action.payload);
- state.items.splice(50);
- },
- delete(state, action) {
- state.items = state.items.filter((item) => item.id !== action.payload.id);
- },
- deleteAll(state) {
- state.items = [];
- },
- },
-});
-
-export { actions as eventsActions };
-export { reducer as eventsReducer };