Afifchage de l'historique des mouvements de point

This commit is contained in:
2024-12-14 00:27:30 +01:00
parent 02304527d3
commit 3d50cee9a9
10 changed files with 102 additions and 19 deletions

View File

@ -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))