mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-29 07:53:23 +00:00
fix: correction des refresh des protected routes [#36]
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user