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
This commit is contained in:
@@ -40,6 +40,12 @@ interface ItemWithCategory {
|
|||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
categoryName: string;
|
categoryName: string;
|
||||||
categoryIcon: string;
|
categoryIcon: string;
|
||||||
|
imageUrl: string | null;
|
||||||
|
dominantColor: string | null;
|
||||||
|
cropZoom: number | null;
|
||||||
|
cropX: number | null;
|
||||||
|
cropY: number | null;
|
||||||
|
priceCurrency: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function useItems() {
|
export function useItems() {
|
||||||
|
|||||||
Reference in New Issue
Block a user