File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,10 @@ const ActionConfirmModal = ({
1818 onConfirm
1919} : AlertProps ) => {
2020 return (
21- < div className = "absolute inset-0 z-50 flex items-center justify-center bg-[#00000080]" >
21+ < div
22+ className = "absolute inset-0 z-50 flex items-center justify-center bg-black/50"
23+ onClick = { onCancel }
24+ >
2225 < div className = "flex h-[200px] w-[294px] flex-col items-center justify-center rounded-2xl bg-white" >
2326 < h3 className = "text-2xl font-bold" > { title } </ h3 >
2427 < p className = "mt-[9px] text-center text-xl font-medium" >
Original file line number Diff line number Diff line change 1-
21import Header from "@/components/header/Header" ;
32import { useState } from "react" ;
43import ActionConfirmModal from "@/components/modal/ActionConfirmModal" ;
54import useAuthStore from "@/store/useAuthStore" ;
65import { useNavigate } from "react-router-dom" ;
6+ import TermsAndPrivacyModal from "@/components/modal/TermsAndPrivacyModal" ;
77
88type ModalType = "logout" | "withdraw" | "terms" | "privacy" | null ;
99
@@ -81,6 +81,10 @@ const MyInfo = () => {
8181 onConfirm = { handleConfirm }
8282 />
8383 ) }
84+
85+ { modalType && ( modalType === "terms" || modalType === "privacy" ) && (
86+ < TermsAndPrivacyModal mode = { modalType } closeModal = { handleCancel } />
87+ ) }
8488 </ div >
8589 ) ;
8690} ;
You can’t perform that action at this time.
0 commit comments