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