diff --git a/apps/web/src/app/login/LoginContent.tsx b/apps/web/src/app/login/LoginContent.tsx index 928fca07..d3a76397 100644 --- a/apps/web/src/app/login/LoginContent.tsx +++ b/apps/web/src/app/login/LoginContent.tsx @@ -6,7 +6,7 @@ import { useRouter, useSearchParams } from "next/navigation"; import { useForm } from "react-hook-form"; import { z } from "zod"; import { usePostEmailAuth } from "@/apis/Auth"; -import { IconSolidConnectionFullBlackLogo } from "@/public/svgs"; +import { IconArrowBackFilled, IconSolidConnectionFullBlackLogo } from "@/public/svgs"; import { IconAppleLogo, IconEmailIcon, IconKakaoLogo } from "@/public/svgs/auth"; import { AUTH_REDIRECT_PARAM, @@ -54,10 +54,27 @@ const LoginContent = () => { } }; + const handleBack = () => { + if (window.history.length > 1) { + router.back(); + return; + } + + router.push("/"); + }; + return (
{nickname}님은
@@ -155,7 +165,7 @@ const MyProfileContent = () => {