chore: fix
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user