fix: correction des refresh des protected routes [#36]

This commit is contained in:
Luc SORIGNET
2025-04-07 17:44:51 +02:00
parent 5a7661db93
commit 839a26257b
7 changed files with 6705 additions and 1558 deletions

View File

@ -9,6 +9,7 @@ import StatCard from '@/components/StatCard';
import logger from '@/utils/logger';
import { fetchRegisterForms } from '@/app/actions/subscriptionAction';
import { fetchUpcomingEvents } from '@/app/actions/planningAction';
import { getSession } from 'next-auth/react';
// Composant EventCard pour afficher les événements
@ -27,7 +28,7 @@ const EventCard = ({ title, date, description, type }) => (
export default function DashboardPage() {
const t = useTranslations('dashboard');
const [isLoading, setIsLoading] = useState(true);
const [isLoading, setIsLoading] = useState(false);
const [totalStudents, setTotalStudents] = useState(0);
const [pendingRegistration, setPendingRegistration] = useState(0);
const [structureCapacity, setStructureCapacity] = useState(0);