File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 11'use client' ;
22
3+ import React , { useState } from 'react' ;
34import ProfilePhoto from '@/pages/mypage/components/ProfilePhoto' ;
45import PostcardContainer from '@/pages/mypage/components/PostcardContainer' ;
5- import { EventCard , BottomNav } from '@/shared/components' ;
6+ import { EventCard , BottomNav , PopupSet } from '@/shared/components' ;
67
78export 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}
You can’t perform that action at this time.
0 commit comments