Skip to content

Commit 55885bb

Browse files
committed
feat: 목록 검색 api 수정 사항 적용
1 parent 7413274 commit 55885bb

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/features/home/components/ItemCard/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ const ItemCard = ({ data }: Props) => {
2727
</div>
2828
<div className={s.Footer}>
2929
<div className={s.Tokens}>
30-
{/* TODO: API 수정 요청 */}
3130
<ItemTokenList
3231
showAll={false}
3332
itemInfo={{
3433
productTypes: data.productTypes,
35-
quality: 'BEST',
36-
size: 'L',
37-
tradeMethods: ['DIRECT'],
34+
quality: data.quality,
35+
size: data.size,
36+
color: data.color,
37+
tradeMethods: data.tradeMethods,
3838
}}
3939
/>
4040
</div>

src/features/home/types.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ProductType, TransactionType } from '@/libs/types/item';
1+
import type { Color, ProductType, Quality, Size, TradeMethods, TransactionType } from '@/libs/types/item';
22

33
export interface ItemInterface {
44
itemId: number;
@@ -12,6 +12,10 @@ export interface ItemInterface {
1212
likeCount: number;
1313
chatRoomCount: number;
1414
available: boolean;
15+
quality: Quality;
16+
size: Size;
17+
color: Color;
18+
tradeMethods: TradeMethods[];
1519
}
1620

1721
export type ItemOrderType = 'RECENT' | 'LIKE' | 'RENTAL_FEE' | 'SALE_PRICE';

0 commit comments

Comments
 (0)