Checkpoint: Correction de l'erreur d'affichage au clic sur un événement du calendrier (ajout import useState manquant) et correction du menu invisible sur la page Établissements (ajout DashboardLayout wrapper)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
|
||||
import DashboardLayout from "@/components/DashboardLayout";
|
||||
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table";
|
||||
import { trpc } from "@/lib/trpc";
|
||||
import { Building2, Users, TrendingUp, Activity } from "lucide-react";
|
||||
@@ -12,6 +13,7 @@ export default function AdminEtablissements() {
|
||||
const tauxGlobal = totalApprenants > 0 ? Math.round((totalActifs / totalApprenants) * 100) : 0;
|
||||
|
||||
return (
|
||||
<DashboardLayout>
|
||||
<div className="space-y-6">
|
||||
<div>
|
||||
<h1 className="text-3xl font-bold">Établissements</h1>
|
||||
@@ -119,5 +121,6 @@ export default function AdminEtablissements() {
|
||||
</CardContent>
|
||||
</Card>
|
||||
</div>
|
||||
</DashboardLayout>
|
||||
);
|
||||
}
|
||||
|
||||
5
todo.md
5
todo.md
@@ -567,3 +567,8 @@
|
||||
- [x] Créer les requêtes backend pour récupérer les statistiques par établissement
|
||||
- [x] Créer une page "Établissements" avec liste et statistiques
|
||||
- [x] Ajouter le lien dans le menu de navigation
|
||||
|
||||
## Corrections bugs interface
|
||||
|
||||
- [x] Corriger l'erreur d'affichage au clic sur un événement du calendrier (ajout import useState)
|
||||
- [x] Corriger le problème de menu invisible sur la page Établissements (ajout DashboardLayout)
|
||||
|
||||
Reference in New Issue
Block a user