refactor: Changement des IconTextInput en TextInput, modification du composant step

This commit is contained in:
Luc SORIGNET
2025-01-27 11:20:44 +01:00
parent 6f1631a75b
commit a248898203
16 changed files with 270 additions and 127 deletions

View File

@ -14,6 +14,9 @@ const ProtectedRoute = ({ children }) => {
}
}, [userId, router]);
if (!userId) {
return <div>Loading...</div>;
}
// Afficher les enfants seulement si l'utilisateur est connecté
return userId ? children : null;
};