From 4bf31f4e2c8ec24e5b1ef601710e4fea7d6207e1 Mon Sep 17 00:00:00 2001 From: ParkSohyunee Date: Mon, 12 Feb 2024 20:39:09 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EB=A6=AC=EC=8A=A4=ED=8A=B8=20=EC=95=84?= =?UTF-8?q?=EC=9D=B4=ED=85=9C=20=ED=83=80=EC=9E=85=20=ED=94=84=EB=A1=9C?= =?UTF-8?q?=ED=8D=BC=ED=8B=B0=20=EC=9D=B4=EB=A6=84=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/user/[userId]/_components/Card.tsx | 2 +- src/lib/types/listType.ts | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/app/user/[userId]/_components/Card.tsx b/src/app/user/[userId]/_components/Card.tsx index 530c850a..af4563de 100644 --- a/src/app/user/[userId]/_components/Card.tsx +++ b/src/app/user/[userId]/_components/Card.tsx @@ -36,7 +36,7 @@ export default function Card({ list, isOwner }: CardProps) { {list.listItems.map((item) => (
  • - {item.ranking} + {item.rank} {'.'} {item.title} diff --git a/src/lib/types/listType.ts b/src/lib/types/listType.ts index dcfd1ce6..0d67f4b8 100644 --- a/src/lib/types/listType.ts +++ b/src/lib/types/listType.ts @@ -81,6 +81,7 @@ export interface ListDetailType { collectCount: number; viewCount: number; } + // 리스트 전체 조회 타입 export interface AllListType { cursorId: number; @@ -98,9 +99,9 @@ export interface ListType { export interface ItemType { id: number; - ranking: number; + rank: number; title: string; - comment?: string; - link?: string; + comment?: string; // 리스트 상세조회 타입에서 사용할때는 optional 여부 확인하기 + link?: string; // 리스트 상세조회 타입에서 사용할때는 optional 여부 확인하기 imageUrl?: string; }