From 1ae99e905429ab67b7513e53e33b5ad6f6d1240b Mon Sep 17 00:00:00 2001 From: jwoojin9 <44637040+jwoojin9@users.noreply.github.com> Date: Wed, 3 Jul 2024 15:10:56 +0900 Subject: [PATCH] chore(fe): prevent signup modal reset (#1757) * chore(fe): prevent signup modal reset * chore(fe): prevent modal closing when clicking outside --- apps/frontend/components/auth/HeaderAuthPanel.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/frontend/components/auth/HeaderAuthPanel.tsx b/apps/frontend/components/auth/HeaderAuthPanel.tsx index 2e560b58b8..8fecbe7532 100644 --- a/apps/frontend/components/auth/HeaderAuthPanel.tsx +++ b/apps/frontend/components/auth/HeaderAuthPanel.tsx @@ -11,7 +11,6 @@ import { } from '@/components/ui/dropdown-menu' import { cn } from '@/lib/utils' import useAuthModalStore from '@/stores/authModal' -import useSignUpModalStore from '@/stores/signUpModal' import { LogOut, User, UserRoundCog } from 'lucide-react' import type { Session } from 'next-auth' import { signOut } from 'next-auth/react' @@ -36,7 +35,6 @@ export default function HeaderAuthPanel({ const { currentModal, hideModal, showSignIn, showSignUp } = useAuthModalStore( (state) => state ) - const { setModalPage } = useSignUpModalStore((state) => state) return (