This commit is contained in:
2026-05-15 16:54:09 +02:00
parent 04671637d2
commit 58b9a0827f
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -815,7 +815,7 @@ export interface Product {
category: string; category: string;
unit?: string; unit?: string;
stock: number; stock: number;
prices?: Array<{ quantity: number; price: number }>; prices?: Array<{ quantity: number; price: number; active_price?: boolean }>;
media?: MediaItem[]; // ✅ CHANGÉ: string[] → MediaItem[] media?: MediaItem[]; // ✅ CHANGÉ: string[] → MediaItem[]
} }
+1 -1
View File
@@ -22,7 +22,7 @@ interface ProductCardProps {
image: string; image: string;
stock: number; stock: number;
category: string; category: string;
prices?: Array<{ quantity: number; price: number }>; prices?: Array<{ quantity: number; price: number; active_price?: boolean }>;
hasVideo?: boolean; hasVideo?: boolean;
videoUrl?: string; // ✨ Nouveau prop pour l'URL de la vidéo videoUrl?: string; // ✨ Nouveau prop pour l'URL de la vidéo
categoryColor?: string; categoryColor?: string;
+1 -1
View File
@@ -36,7 +36,7 @@ interface ProductCardProps {
category: string; category: string;
stock: number; stock: number;
unit?: string; unit?: string;
prices?: Array<{ quantity: number; price: number }>; prices?: Array<{ quantity: number; price: number; active_price?: boolean }>;
media?: Array<{ url: string; type: string }>; media?: Array<{ url: string; type: string }>;
}; };
onPress: () => void; onPress: () => void;