chore: build
This commit is contained in:
@@ -39,7 +39,6 @@ func (d *Database) InsertCommandItemsBatch(items []commandItemFull) error {
|
|||||||
|
|
||||||
// ============================================
|
// ============================================
|
||||||
// VALIDATION HELPERS
|
// VALIDATION HELPERS
|
||||||
// ============================================
|
|
||||||
|
|
||||||
func validateCommandID(commandID int) error {
|
func validateCommandID(commandID int) error {
|
||||||
if commandID <= 0 {
|
if commandID <= 0 {
|
||||||
|
|||||||
@@ -73,7 +73,6 @@ export default function OrderDetailScreen() {
|
|||||||
setCommand(cmdRes.command);
|
setCommand(cmdRes.command);
|
||||||
setItems(itemsRes.items ?? []);
|
setItems(itemsRes.items ?? []);
|
||||||
|
|
||||||
// If livreur assigned, fetch their location and calc route
|
|
||||||
const cmd = cmdRes.command;
|
const cmd = cmdRes.command;
|
||||||
if (cmd?.livreur_assign && cmd?.adresse) {
|
if (cmd?.livreur_assign && cmd?.adresse) {
|
||||||
loadLivreurRoute(cmd.livreur_assign, cmd.adresse);
|
loadLivreurRoute(cmd.livreur_assign, cmd.adresse);
|
||||||
|
|||||||
@@ -1,9 +1,5 @@
|
|||||||
// ============================================
|
// ============================================
|
||||||
// context/CartContext.tsx - QUANTITÉS EN GRAMMES
|
// 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 {
|
import {
|
||||||
createContext,
|
createContext,
|
||||||
@@ -348,4 +344,3 @@ export function CartProvider({ children }: { children: ReactNode }) {
|
|||||||
</CartContext.Provider>
|
</CartContext.Provider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -220,3 +220,5 @@ export function useCart() {
|
|||||||
if (!context) throw new Error("useCart must be used within a CartProvider");
|
if (!context) throw new Error("useCart must be used within a CartProvider");
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user