Client - init workouts store

This commit is contained in:
Sam
2021-09-05 10:39:32 +02:00
parent 18908ce89d
commit a85860581f
11 changed files with 245 additions and 1 deletions

View 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
},
}