Fix warning
This commit is contained in:
Binary file not shown.
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user