From ffddef984572c34dac48a5958959dc58bd6b5461 Mon Sep 17 00:00:00 2001 From: Orionis312050 Date: Fri, 17 Apr 2026 13:13:57 +0200 Subject: [PATCH] Loading --- src/components/ProtectedRoute.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/ProtectedRoute.tsx b/src/components/ProtectedRoute.tsx index 5204da5..898fc5d 100644 --- a/src/components/ProtectedRoute.tsx +++ b/src/components/ProtectedRoute.tsx @@ -1,11 +1,17 @@ import { Navigate, Outlet } from 'react-router-dom'; import { useAuth } from '../context/AuthContext'; +import { Loader2 } from 'lucide-react'; const ProtectedRoute = () => { const { user, loading } = useAuth(); if (loading) { - return
Vérification de la session...
; + return ( +
+ +

Vérification de la session...

+
+ ); } if (!user) {