Checkpoint: Correction de l'affichage du menu de gauche dans les pages Paramètres et Émargement
Modifications : - Ajout de DashboardLayout dans client/src/pages/AdminParametres.tsx - Ajout de DashboardLayout dans client/src/pages/FormateurEmargement.tsx Le menu de navigation s'affiche maintenant correctement dans toutes les pages de l'application.
This commit is contained in:
@@ -6,6 +6,7 @@ import { Label } from "@/components/ui/label";
|
||||
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
|
||||
import { toast } from "sonner";
|
||||
import { Loader2, Save, Settings } from "lucide-react";
|
||||
import DashboardLayout from "@/components/DashboardLayout";
|
||||
|
||||
export default function AdminParametres() {
|
||||
const { data: parametres, isLoading, refetch } = trpc.parametres.get.useQuery();
|
||||
@@ -51,6 +52,7 @@ export default function AdminParametres() {
|
||||
}
|
||||
|
||||
return (
|
||||
<DashboardLayout>
|
||||
<div className="container max-w-4xl py-8">
|
||||
<div className="flex items-center gap-3 mb-6">
|
||||
<Settings className="h-8 w-8 text-primary" />
|
||||
@@ -119,5 +121,6 @@ export default function AdminParametres() {
|
||||
</CardContent>
|
||||
</Card>
|
||||
</div>
|
||||
</DashboardLayout>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ import { CheckCircle2, Circle, Loader2, QrCode, RefreshCw } from "lucide-react";
|
||||
import { useState } from "react";
|
||||
import { toast } from "sonner";
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import DashboardLayout from "@/components/DashboardLayout";
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@@ -115,6 +116,7 @@ export default function FormateurEmargement() {
|
||||
}
|
||||
|
||||
return (
|
||||
<DashboardLayout>
|
||||
<div className="container py-8 space-y-6">
|
||||
<div>
|
||||
<h1 className="text-3xl font-bold">Émargement numérique</h1>
|
||||
@@ -296,5 +298,6 @@ export default function FormateurEmargement() {
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
</div>
|
||||
</DashboardLayout>
|
||||
);
|
||||
}
|
||||
|
||||
3
todo.md
3
todo.md
@@ -690,3 +690,6 @@
|
||||
- [x] Ajouter le lien dans le menu après "Configuration SMTP"
|
||||
- [x] Modifier qrCodeGenerator pour utiliser l'URL de la BDD
|
||||
- [x] Définir l'URL par défaut : https://formations.itinova.org
|
||||
|
||||
- [x] Ajouter DashboardLayout à la page AdminParametres
|
||||
- [x] Ajouter DashboardLayout à la page FormateurEmargement
|
||||
|
||||
Reference in New Issue
Block a user