From 4474b84e49fa403c98859b2438179276850b298c Mon Sep 17 00:00:00 2001 From: Xor290 Date: Tue, 8 Sep 2026 17:55:18 +0200 Subject: [PATCH] chore: build --- backend/gestion/db/db_command_items.go | 1 - frontend-admin/src/screens/admin/OrderDetailScreen.tsx | 1 - frontend-prep/src/context/CartContext.tsx | 5 ----- mobile/src/context/CartContext.tsx | 2 ++ 4 files changed, 2 insertions(+), 7 deletions(-) diff --git a/backend/gestion/db/db_command_items.go b/backend/gestion/db/db_command_items.go index 87a4db3d..965623f4 100644 --- a/backend/gestion/db/db_command_items.go +++ b/backend/gestion/db/db_command_items.go @@ -39,7 +39,6 @@ func (d *Database) InsertCommandItemsBatch(items []commandItemFull) error { // ============================================ // VALIDATION HELPERS -// ============================================ func validateCommandID(commandID int) error { if commandID <= 0 { diff --git a/frontend-admin/src/screens/admin/OrderDetailScreen.tsx b/frontend-admin/src/screens/admin/OrderDetailScreen.tsx index 05cc6a12..a8f8ab3e 100644 --- a/frontend-admin/src/screens/admin/OrderDetailScreen.tsx +++ b/frontend-admin/src/screens/admin/OrderDetailScreen.tsx @@ -73,7 +73,6 @@ export default function OrderDetailScreen() { setCommand(cmdRes.command); setItems(itemsRes.items ?? []); - // If livreur assigned, fetch their location and calc route const cmd = cmdRes.command; if (cmd?.livreur_assign && cmd?.adresse) { loadLivreurRoute(cmd.livreur_assign, cmd.adresse); diff --git a/frontend-prep/src/context/CartContext.tsx b/frontend-prep/src/context/CartContext.tsx index 105a79e0..7261f9b7 100644 --- a/frontend-prep/src/context/CartContext.tsx +++ b/frontend-prep/src/context/CartContext.tsx @@ -1,9 +1,5 @@ // ============================================ // context/CartContext.tsx - QUANTITÉS EN GRAMMES -// ============================================ -// ✅ quantity = grammes choisis (5, 10, 25, etc.) -// ✅ Pas de boutons +/- dans le panier -// ✅ Pour acheter 2× le même produit, l'ajouter 2 fois import { createContext, @@ -348,4 +344,3 @@ export function CartProvider({ children }: { children: ReactNode }) { ); } - diff --git a/mobile/src/context/CartContext.tsx b/mobile/src/context/CartContext.tsx index 6591b697..991a173f 100644 --- a/mobile/src/context/CartContext.tsx +++ b/mobile/src/context/CartContext.tsx @@ -220,3 +220,5 @@ export function useCart() { if (!context) throw new Error("useCart must be used within a CartProvider"); return context; } + +//