Add login, reg, cart, newsletter und access to small batch releases
This commit is contained in:
1 parent
414967441a
commit
fb801e3752
30 files changed
+2979
-246
No files matched your search
@@ -0,0 +1,10 @@
|
||||
import { useContext } from "react";
|
||||
import { ShopContext } from "./ShopContextBase";
|
||||
|
||||
export const useShop = () => {
|
||||
const value = useContext(ShopContext);
|
||||
if (!value) {
|
||||
throw new Error("useShop must be used inside ShopProvider.");
|
||||
}
|
||||
return value;
|
||||
};
|
||||
Reference in new issue
Block a user