diff --git a/framework/bigcommerce/cart/index.ts b/framework/bigcommerce/cart/index.ts index 43c6db2b7..3b8ba990e 100644 --- a/framework/bigcommerce/cart/index.ts +++ b/framework/bigcommerce/cart/index.ts @@ -1,5 +1,4 @@ export { default as useCart } from './use-cart' export { default as useAddItem } from './use-add-item' export { default as useRemoveItem } from './use-remove-item' -export { default as useWishlistActions } from './use-cart-actions' -export { default as useUpdateItem } from './use-cart-actions' +export { default as useUpdateItem } from './use-update-item' diff --git a/framework/bigcommerce/cart/use-cart-actions.tsx b/framework/bigcommerce/cart/use-cart-actions.tsx deleted file mode 100644 index abb4a998e..000000000 --- a/framework/bigcommerce/cart/use-cart-actions.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import useAddItem from './use-add-item' -import useRemoveItem from './use-remove-item' -import useUpdateItem from './use-update-item' - -// This hook is probably not going to be used, but it's here -// to show how a commerce should be structuring it -export default function useCartActions() { - const addItem = useAddItem() - const updateItem = useUpdateItem() - const removeItem = useRemoveItem() - - return { addItem, updateItem, removeItem } -} diff --git a/framework/commerce/cart/use-cart-actions.tsx b/framework/commerce/cart/use-cart-actions.tsx deleted file mode 100644 index 5d081f0a8..000000000 --- a/framework/commerce/cart/use-cart-actions.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import type { HookFetcher, HookFetcherOptions } from '../utils/types' -// import useAddItem from './use-add-item' -import useRemoveItem from './use-remove-item' -import useUpdateItem from './use-update-item' - -// This hook is probably not going to be used, but it's here -// to show how a commerce should be structuring it -export default function useCartActions( - options: HookFetcherOptions, - fetcher: HookFetcher -) { - // const addItem = useAddItem(options, fetcher) - const updateItem = useUpdateItem(options, fetcher) - const removeItem = useRemoveItem(options, fetcher) - - return { updateItem, removeItem } -}