#13 Error alert formatting
This commit is contained in:
@@ -1,7 +1,16 @@
|
||||
import { useEffect } from "react";
|
||||
import { Container } from "react-bootstrap";
|
||||
import MyNavbar from "../components/MyNavbar";
|
||||
|
||||
const HomePage = () => {
|
||||
{/*{current_user} = use context*/}
|
||||
const current_user = null;
|
||||
|
||||
useEffect(()=>{
|
||||
if (!current_user) {
|
||||
window.location.replace("/login");
|
||||
}
|
||||
}, []);
|
||||
return (
|
||||
<div>
|
||||
<MyNavbar />
|
||||
|
||||
Reference in New Issue
Block a user