Afifchage de l'historique des mouvements de point
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import { ChallengeActionsPayload, downloadChallengeActions } from "@/utils/features/challengeActions/challengeActionsSlice"
|
||||
import { useAppDispatch, useAppSelector } from "./useStore"
|
||||
|
||||
export const useChallengeActions = () => useAppSelector((state) => state.challengeActions)
|
||||
export const useChallengeActions = () => useAppSelector((state) => state.challengeActions.challengeActions)
|
||||
export const useDownloadChallengeActions = () => {
|
||||
const dispath = useAppDispatch()
|
||||
return (challengesData: ChallengeActionsPayload) => dispath(downloadChallengeActions(challengesData))
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { ChallengesPayload, downloadChallenges } from "@/utils/features/challenges/challengesSlice"
|
||||
import { useAppDispatch, useAppSelector } from "./useStore"
|
||||
|
||||
export const useChallenges = () => useAppSelector((state) => state.challenges)
|
||||
export const useChallenges = () => useAppSelector((state) => state.challenges.challenges)
|
||||
export const useDownloadChallenges = () => {
|
||||
const dispath = useAppDispatch()
|
||||
return (challengesData: ChallengesPayload) => dispath(downloadChallenges(challengesData))
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { downloadTrains, TrainsPayload } from "@/utils/features/train/trainSlice"
|
||||
import { useAppDispatch, useAppSelector } from "./useStore"
|
||||
|
||||
export const useTrain = () => useAppSelector((state) => state.train)
|
||||
export const useTrain = () => useAppSelector((state) => state.train.trains)
|
||||
export const useDownloadTrains = () => {
|
||||
const dispath = useAppDispatch()
|
||||
return (trainsData: TrainsPayload) => dispath(downloadTrains(trainsData))
|
||||
|
Reference in New Issue
Block a user