@@ -7,34 +7,34 @@ const TermsAndPrivacyModal = ({
77 closeModal
88} : {
99 mode : "terms" | "privacy" ;
10- closeModal : ( ) => void ;
10+ closeModal : ( ) => void ;
1111} ) => {
1212 const title = mode === "terms" ? "이용약관" : "개인정보처리방침" ;
13- const description =
14- mode === "terms"
15- ? TERMS
16- : PRIVACY ;
13+ const description = mode === "terms" ? TERMS : PRIVACY ;
1714
18- const handleOuterClick = ( ) => {
19- closeModal ( )
20- }
15+ const handleOuterClick = ( ) => {
16+ closeModal ( ) ;
17+ } ;
2118
22- const handleInnerClick = ( e :MouseEvent ) => {
23- e . stopPropagation ( ) ;
24- }
19+ const handleInnerClick = ( e : MouseEvent ) => {
20+ e . stopPropagation ( ) ;
21+ } ;
2522
2623 return (
27- < div className = "inset-0 fixed flex items-center justify-center z-50 bg-black/50" onClick = { handleOuterClick } >
28- < div className = "relative rounded-lg flex flex-col items-center w-[360px] h-[476px] bg-white px-[45px] py-[25px] overflow-scroll " onClick = { handleInnerClick } >
29- < h1 className = "font-bold text-2xl " > { title } </ h1 >
30- < p className = "mt-[30px] whitespace-pre-wrap" > { description } </ p >
31- < button
32- onClick = { closeModal }
33- className = "absolute top-6 right-4"
24+ < div
25+ className = "fixed inset-0 z-50 flex items-center justify-center bg-black/50"
26+ onClick = { handleOuterClick }
27+ >
28+ < div
29+ className = "relative flex h-[476px] w-[360px] flex-col items-center overflow-scroll rounded-lg bg-white px-[45px] py-[25px] "
30+ onClick = { handleInnerClick }
3431 >
35- < img src = "/icon/close.svg" alt = "닫기 버튼" width = { 22 } height = { 22 } />
36- </ button >
37- </ div >
32+ < h1 className = "text-2xl font-bold " > { title } </ h1 >
33+ < p className = "mt-[30px] whitespace-pre-wrap" > { description } </ p >
34+ < button onClick = { closeModal } className = "absolute top-6 right-4" >
35+ < img src = "/icon/close.svg" alt = "닫기 버튼" width = { 22 } height = { 22 } />
36+ </ button >
37+ </ div >
3838 </ div >
3939 ) ;
4040} ;
0 commit comments