Client - init users store

This commit is contained in:
Sam
2021-10-31 09:27:12 +01:00
parent 1911b03db5
commit 6a002592f0
13 changed files with 217 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import { IRootState } from '@/store/modules/root/types'
import { ISportsState } from '@/store/modules/sports/types'
import { IStatisticsState } from '@/store/modules/statistics/types'
import { IUserState } from '@/store/modules/user/types'
import { IUsersState } from '@/store/modules/users/types'
import { IWorkoutsState } from '@/store/modules/workouts/types'
export const getApiUrl = (): string => {
@ -25,6 +26,7 @@ export const handleError = (
| ActionContext<IUserState, IRootState>
| ActionContext<IStatisticsState, IRootState>
| ActionContext<ISportsState, IRootState>
| ActionContext<IUsersState, IRootState>
| ActionContext<IWorkoutsState, IRootState>,
error: AxiosError | null,
msg = 'UNKNOWN'