chore: build
Backend - Build & Lint / build (push) Successful in 40m56s
Frontend Admin - EAS Build / build (push) Successful in 1h28m48s
Frontend Client - EAS Build / build (push) Successful in 1h23m23s
Frontend Web - Build & Lint / build (push) Successful in 15m50s

This commit is contained in:
Xor290
2026-09-12 17:08:19 +02:00
parent 9f5f709507
commit b6189ac787
10 changed files with 806 additions and 16 deletions
+7 -1
View File
@@ -796,7 +796,13 @@ export interface Product {
category: string;
unit?: string;
stock: number;
prices?: Array<{ quantity: number; price: number; active_price?: boolean }>;
prices?: Array<{
quantity: number;
price: number;
active_price?: boolean;
promo_price?: number | null;
promo_percent?: number;
}>;
media?: MediaItem[]; // ✅ CHANGÉ: string[] → MediaItem[]
coming_soon?: boolean;
}
@@ -329,10 +329,10 @@ function ProductDetail() {
)}
<span style={hasPromo ? { color: "#22c55e" } : undefined}>
{selectedPrice.toFixed(2)}
</span>{" "}
{selectedGrams &&
`pour ${selectedGrams}${product.unit || "g"}`}
{hasPromo && ` (-${selectedTier!.promo_percent}%)`}
</span>
{!hasPromo &&
selectedGrams &&
` pour ${selectedGrams}${product.unit || "g"}`}
</p>
);
})()}