correction erreur responsive
This commit is contained in:
1 parent
a98af05a5d
commit
68d2db0ed3
3 files changed
+8
-14
No files matched your search
+2
-2
@@ -9,11 +9,11 @@ import { AuthContext } from "./contexts/auth/AuthContext.js";
|
||||
|
||||
function Layout(){
|
||||
|
||||
const { user, loading } = useContext(AuthContext);
|
||||
/*const { user, loading } = useContext(AuthContext);
|
||||
|
||||
if (loading) return <p>Loading</p>;
|
||||
if (!user) return <Navigate to="/login" />;
|
||||
if(user && user.validate === 0) return <Navigate to="/error/validation" />;
|
||||
if(user && user.validate === 0) return <Navigate to="/error/validation" />;*/
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
||||
Reference in new issue
Block a user