diff --git a/client/src/components/Header.tsx b/client/src/components/Header.tsx index c4f170a..1a253a1 100644 --- a/client/src/components/Header.tsx +++ b/client/src/components/Header.tsx @@ -1,16 +1,22 @@ -import { HiOutlineQuestionMarkCircle } from "react-icons/hi"; +import { HiOutlineHome, HiOutlineQuestionMarkCircle } from "react-icons/hi"; import { NavLink } from "react-router"; export default function Header() { return (
-
- +
+ logo イツヒマ (アルファ版) +
+
+ + + ホーム + diff --git a/client/src/pages/Landing.tsx b/client/src/pages/Landing.tsx index 6f1ea7f..3b181ad 100644 --- a/client/src/pages/Landing.tsx +++ b/client/src/pages/Landing.tsx @@ -1,32 +1,7 @@ -import { useEffect } from "react"; -import { NavLink, useNavigate } from "react-router"; +import { NavLink } from "react-router"; import Header from "../components/Header"; -import { useAuth } from "../hooks"; export default function LandingPage() { - const navigate = useNavigate(); - const { isAuthenticated } = useAuth(); - - useEffect(() => { - // If user is authenticated (has cookie), redirect to home - if (isAuthenticated === true) { - navigate("/home", { replace: true }); - } - }, [isAuthenticated, navigate]); - - if (isAuthenticated === null) { - return ( - <> -
-
-
- -
-
- - ); - } - return ( <>