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) {