@@ -103,20 +103,27 @@ export const UserChallengeList = () => {
103103 🏅 Points des Factions
104104 </ CardTitle >
105105 </ CardHeader >
106+
106107 < CardContent className = "space-y-10" >
107- < div className = "text-center text-gray-700" >
108- { factions . length > 0 ? (
109- < div className = "space-y-3" >
110- { factions . map ( ( faction ) => (
111- < p key = { faction . factionId } className = "text-xl font-semibold" >
112- { faction . name } : { factionPoints [ faction . factionId ] ?? 0 } points
113- </ p >
114- ) ) }
115- </ div >
116- ) : (
117- < p className = "text-gray-500" > Chargement des points...</ p >
118- ) }
119- </ div >
108+ { ! isChallOpen ? (
109+ < p className = "text-red-500 font-medium text-center" >
110+ 🚫 Les points des factions sont actuellement cachés.
111+ </ p >
112+ ) : (
113+ < div className = "text-center text-gray-700" >
114+ { factions . length > 0 ? (
115+ < div className = "space-y-3" >
116+ { factions . map ( ( faction ) => (
117+ < p key = { faction . factionId } className = "text-xl font-semibold" >
118+ { faction . name } : { factionPoints [ faction . factionId ] ?? 0 } points
119+ </ p >
120+ ) ) }
121+ </ div >
122+ ) : (
123+ < p className = "text-gray-500" > Chargement des points...</ p >
124+ ) }
125+ </ div >
126+ ) }
120127 </ CardContent >
121128 </ Card >
122129
@@ -129,7 +136,7 @@ export const UserChallengeList = () => {
129136 < CardContent className = "space-y-10" >
130137 { ! isChallOpen ? (
131138 < p className = "text-red-500 font-medium text-center" >
132- 🚫 Ce formulaire n'est pas encore disponible .
139+ 🚫 Les défis sont actuellement fermés .
133140 </ p >
134141 ) : (
135142 < div className = "relative pb-[56.25%] rounded-xl shadow-lg overflow-hidden" >
@@ -157,7 +164,7 @@ export const UserChallengeList = () => {
157164 < p className = "text-gray-500 text-center" > Chargement en cours...</ p >
158165 ) : ! isChallOpen ? (
159166 < p className = "text-red-500 font-medium text-center" >
160- 🚫 Les challenges ne sont pas encore ouverts .
167+ 🚫 Les défis sont actuellement fermés .
161168 </ p >
162169 ) : availableChallenges . length === 0 ? (
163170 < p className = "text-gray-500 text-center" > Aucun défi disponible pour le moment.</ p >
0 commit comments