Checkpoint: Correction de l'affichage du délai des rappels post-formation
Problème résolu : - Les rappels post-formation affichaient "J-X" au lieu de "J+X" dans la colonne Délai Modification apportée : - Mise à jour de l'affichage dans AdminRappels.tsx pour vérifier le champ "timing" - Si timing = "post_formation" : affiche "J+X" - Si timing = "pre_formation" : affiche "J-X" Résultat : L'affichage est maintenant cohérent avec le type de rappel configuré
This commit is contained in:
@@ -222,7 +222,9 @@ export default function AdminRappels() {
|
||||
<TableRow key={rappel.id}>
|
||||
<TableCell className="font-medium">{rappel.nom}</TableCell>
|
||||
<TableCell>{getTemplateName(rappel.templateType)}</TableCell>
|
||||
<TableCell>J-{rappel.joursAvant}</TableCell>
|
||||
<TableCell>
|
||||
{rappel.timing === "post_formation" ? `J+${rappel.joursAvant}` : `J-${rappel.joursAvant}`}
|
||||
</TableCell>
|
||||
<TableCell>{rappel.heureEnvoi}</TableCell>
|
||||
<TableCell>
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user