chore: fix

This commit is contained in:
2026-05-03 19:38:29 +02:00
parent 4075ae2568
commit f8473b9a54
27 changed files with 608 additions and 115 deletions
+2 -1
View File
@@ -54,6 +54,7 @@ interface ToastMessage {
type: "success" | "error" | "warning" | "info";
}
// eslint-disable-next-line react-refresh/only-export-components
export const CartContext = createContext<CartContextType | undefined>(undefined);
export function CartProvider({ children }: { children: ReactNode }) {
@@ -168,7 +169,7 @@ export function CartProvider({ children }: { children: ReactNode }) {
return () => {
console.log("🔄 [CART] CartProvider unmount");
};
}, []);
}, []); // eslint-disable-line react-hooks/exhaustive-deps
/**
* ✅ Ajouter au panier
@@ -36,6 +36,7 @@ export function ThemeProvider({ children }: { children: ReactNode }) {
);
}
// eslint-disable-next-line react-refresh/only-export-components
export function useTheme(): ThemeContextValue {
return useContext(ThemeContext);
}