Fix warning

This commit is contained in:
FlorianSpeicher
2025-06-15 15:57:03 +02:00
parent 6ebc610f41
commit f2ad893adc
3 changed files with 2 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ export const AccountProvider = ({ children }: { children: ReactNode }) => {
);
};
// eslint-disable-next-line react-refresh/only-export-components
export const useAccount = () => {
const context = useContext(AccountContext);
if (!context) {

View File

@@ -44,6 +44,7 @@ export const BasketProvider: React.FC<{ children: React.ReactNode }> = ({ childr
);
};
// eslint-disable-next-line react-refresh/only-export-components
export const useBasket = () => {
const context = useContext(BasketContext);
if (!context) {