Skip to content

Commit 1a0d537

Browse files
committed
feat : mypage 레이아웃
1 parent f15b7b3 commit 1a0d537

File tree

1 file changed

+5
-24
lines changed

1 file changed

+5
-24
lines changed

src/pages/mypage/index.tsx

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,6 @@ import PostcardContainer from '@/pages/mypage/components/PostcardContainer';
55
import { EventCard, BottomNav } from '@/shared/components';
66

77
export default function MyPage() {
8-
const mockName = '이수민';
9-
const mockImages = [
10-
'/1.jpg',
11-
'/2.jpg',
12-
'/3.jpg',
13-
'/2.jpg',
14-
'/1.jpg',
15-
'/11.jpg',
16-
'/2.jpg',
17-
'/1.jpg',
18-
'/11.jpg',
19-
];
20-
const mockUser = {
21-
profileImageUrl: '/11.jpg',
22-
};
23-
248
const handleLogout = () => {
259
alert('로그아웃');
2610
};
@@ -30,8 +14,8 @@ export default function MyPage() {
3014
<div className='w-full flex flex-col items-center px-[2.3rem] pb-[2rem]'>
3115
{/* 프로필 */}
3216
<section className='w-full flex flex-col items-center mt-[2.4rem] gap-[1.0rem]'>
33-
<ProfilePhoto src={mockUser.profileImageUrl} />
34-
<p className='text-title-md'>{mockName}</p>
17+
<ProfilePhoto/>
18+
<p className='text-title-md'>이름</p>
3519
</section>
3620

3721
{/* 저장한 행사 */}
@@ -44,7 +28,7 @@ export default function MyPage() {
4428
description='내 골반이 멈추지 않아서 일까?'
4529
variant='gray'
4630
size='large'
47-
imageSrc='/1.jpg'
31+
imageSrc=''
4832
/>
4933
<EventCard
5034
name='이혼 숙려 캠프'
@@ -60,10 +44,7 @@ export default function MyPage() {
6044
{/* 저장한 엽서 */}
6145
<section className='w-full mt-[1.8rem]'>
6246
<p className='text-label-lg mb-[0.6rem] pl-[1rem]'>저장한 엽서</p>
63-
<PostcardContainer
64-
postcards={mockImages}
65-
onClickCard={(i) => alert(`${i + 1} 엽서 장소 페이지 이동`)}
66-
/>
47+
<PostcardContainer postcards={[]} />
6748
</section>
6849

6950
{/* 로그아웃 */}
@@ -75,7 +56,7 @@ export default function MyPage() {
7556
로그아웃
7657
</button>
7758
</div>
78-
<BottomNav />
59+
<BottomNav />
7960
</main>
8061
);
8162
}

0 commit comments

Comments
 (0)