Skip to content

Commit daba470

Browse files
committed
feat : 로그아웃 팝업 연결
1 parent 1a0d537 commit daba470

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/pages/mypage/index.tsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
'use client';
22

3+
import React, { useState } from 'react';
34
import ProfilePhoto from '@/pages/mypage/components/ProfilePhoto';
45
import PostcardContainer from '@/pages/mypage/components/PostcardContainer';
5-
import { EventCard, BottomNav } from '@/shared/components';
6+
import { EventCard, BottomNav, PopupSet } from '@/shared/components';
67

78
export default function MyPage() {
9+
const [showLogoutPopup, setShowLogoutPopup] = useState(false);
810
const handleLogout = () => {
9-
alert('로그아웃');
11+
setShowLogoutPopup(true);
1012
};
1113

1214
return (
@@ -57,6 +59,15 @@ export default function MyPage() {
5759
</button>
5860
</div>
5961
<BottomNav />
62+
63+
{showLogoutPopup && (
64+
<PopupSet
65+
text="로그아웃 하시겠습니까?"
66+
onClose={() => {
67+
setShowLogoutPopup(false);
68+
}}
69+
/>
70+
)}
6071
</main>
6172
);
6273
}

0 commit comments

Comments
 (0)