mirror of
https://github.com/vercel/commerce.git
synced 2025-07-27 04:01:23 +00:00
Added initial version of useAddItem
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import { SHOPIFY_CHECKOUT_ID_COOKIE, STORE_DOMAIN } from './const'
|
||||
|
||||
import { handler as useCart } from '@framework/cart/use-cart'
|
||||
import { handler as useSearch } from '@framework/product/use-search'
|
||||
import { handler as useCustomer } from '@framework/customer/use-customer'
|
||||
import { handler as useCart } from './cart/use-cart'
|
||||
import { handler as useAddItem } from './cart/use-add-item'
|
||||
import { handler as useSearch } from './product/use-search'
|
||||
import { handler as useCustomer } from './customer/use-customer'
|
||||
import fetcher from './fetcher'
|
||||
|
||||
export const shopifyProvider = {
|
||||
@@ -10,7 +11,7 @@ export const shopifyProvider = {
|
||||
cartCookie: SHOPIFY_CHECKOUT_ID_COOKIE,
|
||||
storeDomain: STORE_DOMAIN,
|
||||
fetcher,
|
||||
cart: { useCart },
|
||||
cart: { useCart, useAddItem },
|
||||
customer: { useCustomer },
|
||||
products: { useSearch },
|
||||
}
|
||||
|
Reference in New Issue
Block a user