From 213b995271edfbe7604d07ba4b71fcc20038a894 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Mon, 17 Nov 2025 10:00:07 +0000
Subject: (최겸) 구매 입찰 수정
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 components/auth/simple-reauth-modal.tsx | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

(limited to 'components/auth/simple-reauth-modal.tsx')

diff --git a/components/auth/simple-reauth-modal.tsx b/components/auth/simple-reauth-modal.tsx
index f00674e3..80f03ad9 100644
--- a/components/auth/simple-reauth-modal.tsx
+++ b/components/auth/simple-reauth-modal.tsx
@@ -36,13 +36,15 @@ type ReAuthFormValues = z.infer<typeof reAuthSchema>
 interface SimpleReAuthModalProps {
   isOpen: boolean
   onSuccess: () => void
+  onClose?: () => void
   userEmail: string
 }
 
-export function SimpleReAuthModal({ 
-  isOpen, 
-  onSuccess, 
-  userEmail 
+export function SimpleReAuthModal({
+  isOpen,
+  onSuccess,
+  onClose,
+  userEmail
 }: SimpleReAuthModalProps) {
   const [isLoading, setIsLoading] = React.useState(false)
   const [attemptCount, setAttemptCount] = React.useState(0)
@@ -114,11 +116,18 @@ export function SimpleReAuthModal({
     if (!isOpen) {
       form.reset()
       setAttemptCount(0)
+      if (onClose) {
+        // 모달이 닫힐 때 정리 작업
+      }
     }
-  }, [isOpen, form])
+  }, [isOpen, form, onClose])
 
   return (
-    <Dialog open={isOpen} onOpenChange={() => {}}>
+    <Dialog open={isOpen} onOpenChange={(open) => {
+      if (!open && onClose) {
+        onClose()
+      }
+    }}>
       <DialogContent className="sm:max-w-[400px]">
         <DialogHeader>
           <DialogTitle className="flex items-center gap-2">
-- 
cgit v1.2.3

