Client - init workouts store
This commit is contained in:
15
fittrackee_client/src/store/modules/workouts/getters.ts
Normal file
15
fittrackee_client/src/store/modules/workouts/getters.ts
Normal file
@ -0,0 +1,15 @@
|
||||
import { GetterTree } from 'vuex'
|
||||
|
||||
import { WORKOUTS_STORE } from '@/store/constants'
|
||||
import { IRootState } from '@/store/modules/root/types'
|
||||
import {
|
||||
IWorkoutsGetters,
|
||||
IWorkoutsState,
|
||||
} from '@/store/modules/workouts/types'
|
||||
|
||||
export const getters: GetterTree<IWorkoutsState, IRootState> &
|
||||
IWorkoutsGetters = {
|
||||
[WORKOUTS_STORE.GETTERS.CALENDAR_WORKOUTS]: (state: IWorkoutsState) => {
|
||||
return state.calendar_workouts
|
||||
},
|
||||
}
|
Reference in New Issue
Block a user