From b43a9322175a817241db6e9173a45e06058fccb1 Mon Sep 17 00:00:00 2001 From: Jean-Luc Makiola Date: Sun, 19 Apr 2026 19:41:44 +0200 Subject: [PATCH] fix(35-01): extend ItemWithCategory with image and currency fields (FIX-02) - Add imageUrl, dominantColor, cropZoom, cropX, cropY, priceCurrency to interface - Server already returns these fields via withImageUrls(); type was just incomplete --- src/client/hooks/useItems.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/client/hooks/useItems.ts b/src/client/hooks/useItems.ts index 6b43281..ca45608 100644 --- a/src/client/hooks/useItems.ts +++ b/src/client/hooks/useItems.ts @@ -40,6 +40,12 @@ interface ItemWithCategory { updatedAt: string; categoryName: string; categoryIcon: string; + imageUrl: string | null; + dominantColor: string | null; + cropZoom: number | null; + cropX: number | null; + cropY: number | null; + priceCurrency: string | null; } export function useItems() {