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 { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
|
||||||
import { toast } from "sonner";
|
import { toast } from "sonner";
|
||||||
import { Loader2, Save, Settings } from "lucide-react";
|
import { Loader2, Save, Settings } from "lucide-react";
|
||||||
|
import DashboardLayout from "@/components/DashboardLayout";
|
||||||
|
|
||||||
export default function AdminParametres() {
|
export default function AdminParametres() {
|
||||||
const { data: parametres, isLoading, refetch } = trpc.parametres.get.useQuery();
|
const { data: parametres, isLoading, refetch } = trpc.parametres.get.useQuery();
|
||||||
@@ -51,6 +52,7 @@ export default function AdminParametres() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<DashboardLayout>
|
||||||
<div className="container max-w-4xl py-8">
|
<div className="container max-w-4xl py-8">
|
||||||
<div className="flex items-center gap-3 mb-6">
|
<div className="flex items-center gap-3 mb-6">
|
||||||
<Settings className="h-8 w-8 text-primary" />
|
<Settings className="h-8 w-8 text-primary" />
|
||||||
@@ -119,5 +121,6 @@ export default function AdminParametres() {
|
|||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
</div>
|
</div>
|
||||||
|
</DashboardLayout>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ import { CheckCircle2, Circle, Loader2, QrCode, RefreshCw } from "lucide-react";
|
|||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import { toast } from "sonner";
|
import { toast } from "sonner";
|
||||||
import { Badge } from "@/components/ui/badge";
|
import { Badge } from "@/components/ui/badge";
|
||||||
|
import DashboardLayout from "@/components/DashboardLayout";
|
||||||
import {
|
import {
|
||||||
Dialog,
|
Dialog,
|
||||||
DialogContent,
|
DialogContent,
|
||||||
@@ -115,6 +116,7 @@ export default function FormateurEmargement() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<DashboardLayout>
|
||||||
<div className="container py-8 space-y-6">
|
<div className="container py-8 space-y-6">
|
||||||
<div>
|
<div>
|
||||||
<h1 className="text-3xl font-bold">Émargement numérique</h1>
|
<h1 className="text-3xl font-bold">Émargement numérique</h1>
|
||||||
@@ -296,5 +298,6 @@ export default function FormateurEmargement() {
|
|||||||
</DialogContent>
|
</DialogContent>
|
||||||
</Dialog>
|
</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] Ajouter le lien dans le menu après "Configuration SMTP"
|
||||||
- [x] Modifier qrCodeGenerator pour utiliser l'URL de la BDD
|
- [x] Modifier qrCodeGenerator pour utiliser l'URL de la BDD
|
||||||
- [x] Définir l'URL par défaut : https://formations.itinova.org
|
- [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