Skip to content

Commit ea42895

Browse files
authored
Merge pull request #182 from Soohyuniii/feat/myinfo-화면-내-terms,-privacy-모달-연동-작업
feat: myinfo 화면 내 terms, privacy modal 연동
2 parents 7472e4f + 39cf7ba commit ea42895

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/components/modal/ActionConfirmModal.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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">

src/pages/MyInfo.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
21
import Header from "@/components/header/Header";
32
import { useState } from "react";
43
import ActionConfirmModal from "@/components/modal/ActionConfirmModal";
54
import useAuthStore from "@/store/useAuthStore";
65
import { useNavigate } from "react-router-dom";
6+
import TermsAndPrivacyModal from "@/components/modal/TermsAndPrivacyModal";
77

88
type 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
};

0 commit comments

Comments
 (0)