diff --git a/components/Layout/Header.tsx b/components/Layout/Header.tsx index 56e13c0..c7cc389 100644 --- a/components/Layout/Header.tsx +++ b/components/Layout/Header.tsx @@ -7,12 +7,11 @@ const Header = () => { return ( - - - + + + + + diff --git a/pages/index.tsx b/pages/index.tsx index 517eeb4..b831982 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -6,6 +6,7 @@ import sectionFolder from "@/public/images/section_folder.png"; import sectionShare from "@/public/images/section_share.png"; import sectionSearch from "@/public/images/section_search.png"; import { useRouter } from "next/router"; +import useAuthStore from "@/store/useAuthStore"; const sectionStyle = "flex flex-col md:flex-row md:items-center md:gap-[51px] lg:flex-row lg:items-center lg:gap-[157px]"; @@ -19,11 +20,11 @@ const sectionImageStyle = const HomePage = () => { const router = useRouter(); - const isLoggedIn = false; + const { isLoggedIn } = useAuthStore(); const handleClick = () => { if (isLoggedIn) { - router.push("/share"); + router.push("/link"); } else { router.push("/login"); } @@ -32,12 +33,12 @@ const HomePage = () => { return ( - + 세상의 모든 정보 를 쉽게 저장하고 - 관리해 보세요 - + 관리해 보세요 +