From 335ec127175601c97aa0f8a50ff45d7c3cece3c1 Mon Sep 17 00:00:00 2001 From: JSH-data Date: Sat, 3 Feb 2024 23:22:15 +0900 Subject: [PATCH] feat(domain/my-info): feat: link my-info api --- app/my-info/page.tsx | 48 ++++++++++--------- .../domains/my-info/cardboard/index.tsx | 6 +-- .../domains/my-info/reviewCardboard/index.tsx | 6 +-- 3 files changed, 32 insertions(+), 28 deletions(-) diff --git a/app/my-info/page.tsx b/app/my-info/page.tsx index e84fc17..365a4b1 100644 --- a/app/my-info/page.tsx +++ b/app/my-info/page.tsx @@ -21,8 +21,17 @@ interface MyInfo { id: number; nickname: string; profileImage: string; - purchaseList: []; - reviewList: []; + purchaseList: MyInfoItem[]; + reviewList: MyInfoItem[]; +} + +interface MyInfoItem { + artThumbnail: string; + artTitle: string; + id: number; + nickname: string; + place: string; + visitorCount: number; } function MyInfoPage() { @@ -100,29 +109,27 @@ function MyInfoPage() {