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,7 +52,8 @@ export default function AdminParametres() {
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="container max-w-4xl py-8">
|
||||
<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" />
|
||||
<div>
|
||||
@@ -118,6 +120,7 @@ export default function AdminParametres() {
|
||||
</div>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</div>
|
||||
</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,7 +116,8 @@ export default function FormateurEmargement() {
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="container py-8 space-y-6">
|
||||
<DashboardLayout>
|
||||
<div className="container py-8 space-y-6">
|
||||
<div>
|
||||
<h1 className="text-3xl font-bold">Émargement numérique</h1>
|
||||
<p className="text-muted-foreground mt-2">
|
||||
@@ -295,6 +297,7 @@ export default function FormateurEmargement() {
|
||||
)}
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
</div>
|
||||
</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