Changeset 5528b99 for frontend/src/Pages/LoginPage.js
- Timestamp:
- 01/16/24 16:34:03 (9 months ago)
- Branches:
- master
- Children:
- 07f4e8b
- Parents:
- e6c2521
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
frontend/src/Pages/LoginPage.js
re6c2521 r5528b99 3 3 import { Container } from "react-bootstrap"; 4 4 import Navigation from "../Components/Layout/Navbar/Navigation"; 5 import {useAuth} from "../Components/Context/AuthContext";6 import {Navigate} from "react-router-dom";7 8 5 9 6 const LoginPage = () => { … … 11 8 document.body.style.marginTop = "auto"; 12 9 document.body.style.marginBottom = "auto"; 13 14 const Auth = useAuth();15 const isLoggedIn = Auth.userIsAuthenticated();16 17 if (isLoggedIn) {18 return <Navigate to={'/home'}/>19 }20 21 10 return ( 22 11 <>
Note:
See TracChangeset
for help on using the changeset viewer.