aboutsummaryrefslogtreecommitdiff
path: root/modern/src/store/reports.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/store/reports.js')
-rw-r--r--modern/src/store/reports.js29
1 files changed, 0 insertions, 29 deletions
diff --git a/modern/src/store/reports.js b/modern/src/store/reports.js
deleted file mode 100644
index d0c1f6dd..00000000
--- a/modern/src/store/reports.js
+++ /dev/null
@@ -1,29 +0,0 @@
-import { createSlice } from '@reduxjs/toolkit';
-import dayjs from 'dayjs';
-
-const { reducer, actions } = createSlice({
- name: 'reports',
- initialState: {
- groupIds: [],
- period: 'today',
- from: dayjs().subtract(1, 'hour').locale('en').format('YYYY-MM-DDTHH:mm'),
- to: dayjs().locale('en').format('YYYY-MM-DDTHH:mm'),
- },
- reducers: {
- updateGroupIds(state, action) {
- state.groupIds = action.payload;
- },
- updatePeriod(state, action) {
- state.period = action.payload;
- },
- updateFrom(state, action) {
- state.from = action.payload;
- },
- updateTo(state, action) {
- state.to = action.payload;
- },
- },
-});
-
-export { actions as reportsActions };
-export { reducer as reportsReducer };