Chore/cleanup date usage

This commit is contained in:
Sofiya Tepikin committed 2022-08-19 15:27:20 +00:00
1 parent 505584f1eb
commit 6446073125
13 files changed
+156 -212

No files matched your search

-19
View File
@@ -1,19 +0,0 @@
import { createSlice } from 'redux-starter-kit'
import { LocalDate } from '@js-joda/core'
const dateSlice = createSlice({
slice: 'date',
initialState: LocalDate.now().toString(),
reducers: {
setDate: (state, action) => action.payload,
},
})
// Extract the action creators object and the reducer
const { actions, reducer, selectors } = dateSlice
// Extract and export each action creator by name
export const { setDate } = actions
export const { getDate } = selectors
export default reducer