diff options
Diffstat (limited to 'modern/src/store/geofences.js')
-rw-r--r-- | modern/src/store/geofences.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/modern/src/store/geofences.js b/modern/src/store/geofences.js deleted file mode 100644 index f2b7666a..00000000 --- a/modern/src/store/geofences.js +++ /dev/null @@ -1,20 +0,0 @@ -import { createSlice } from '@reduxjs/toolkit'; - -const { reducer, actions } = createSlice({ - name: 'geofences', - initialState: { - items: {}, - }, - reducers: { - refresh(state, action) { - state.items = {}; - action.payload.forEach((item) => state.items[item.id] = item); - }, - update(state, action) { - action.payload.forEach((item) => state.items[item.id] = item); - }, - }, -}); - -export { actions as geofencesActions }; -export { reducer as geofencesReducer }; |