Added initial version of useAddItem

This commit is contained in:
Luis Alvarez
2021-02-16 21:14:11 -05:00
parent 75d485d35a
commit c02d7fec62
7 changed files with 145 additions and 96 deletions

View File

@@ -1,4 +1,5 @@
import { handler as useCart } from './cart/use-cart'
import { handler as useAddItem } from './cart/use-add-item'
import { handler as useWishlist } from './wishlist/use-wishlist'
import { handler as useCustomer } from './customer/use-customer'
import { handler as useSearch } from './product/use-search'
@@ -8,7 +9,7 @@ export const bigcommerceProvider = {
locale: 'en-us',
cartCookie: 'bc_cartId',
fetcher,
cart: { useCart },
cart: { useCart, useAddItem },
wishlist: { useWishlist },
customer: { useCustomer },
products: { useSearch },