diff --git a/src/api/Myplace/myPlace.api.ts b/src/api/Myplace/myPlace.api.ts index d7ad98f..66263c3 100644 --- a/src/api/Myplace/myPlace.api.ts +++ b/src/api/Myplace/myPlace.api.ts @@ -31,6 +31,7 @@ export interface SavedPlaceItem { placeName: string; likeCount: number; themeName: string; + regionName: string; savedAt: string; } export interface SavedPlacePage { @@ -54,9 +55,9 @@ export async function savePlace(payload: SavePlaceRequest): Promise('/my/places/save', { data: payload, diff --git a/src/component/common/Card/PlaceCard.tsx b/src/component/common/Card/PlaceCard.tsx index dcc1f17..ee9722b 100644 --- a/src/component/common/Card/PlaceCard.tsx +++ b/src/component/common/Card/PlaceCard.tsx @@ -23,42 +23,36 @@ export default function PlaceCard({ onClick, }: PlaceCardProps) { const showCount = typeof quietLevel === 'number' && quietLevel !== -1; + return (
- {/*썸네일*/} -
+
{imgUrl ? ( ) : ( - +
+ +
)}
- {/*텍스트*/} -
-
-

{title}

-
- - {/*뱃지 2개*/} -
- +
+

{title}

+
+ {showCount ? '한적함' : '정보없음'} + - {theme} + {theme}
-
+
{showRemoveButton ? (
@@ -77,7 +77,6 @@ export default function HomePage() {
- {/*Todo: 추후 홈 메인 내용 확정 되면 구현....*/}
); diff --git a/src/pages/home/MyPage.tsx b/src/pages/home/MyPage.tsx index 1dc595c..48f3660 100644 --- a/src/pages/home/MyPage.tsx +++ b/src/pages/home/MyPage.tsx @@ -178,7 +178,7 @@ export default function MyPage() { )}
-
+
{/*회원 탈퇴*/} -
+
diff --git a/src/pages/home/MyTravelList.tsx b/src/pages/home/MyTravelList.tsx index 2788467..1ec10ff 100644 --- a/src/pages/home/MyTravelList.tsx +++ b/src/pages/home/MyTravelList.tsx @@ -59,7 +59,12 @@ const MyTravelList = () => { const snapshot = items; setItems((prev) => prev.filter((it) => it.contentId !== item.contentId)); try { - await unsavePlace({ contentId: String(item.contentId) }); + await unsavePlace({ + contentId: item.contentId, + themeName: item.themeName, + cnctrLevel: item.cnctrLevel, + regionName: item.regionName ?? '여행지', + }); } catch (e) { console.error('[MyTravelList][unsavePlace]', e); // 롤백