use @bigcommerce/storefront-data-hooks

This commit is contained in:
luc
2020-10-27 02:35:40 +01:00
parent 5962657b7d
commit c7b5c3ddc9
31 changed files with 70 additions and 58 deletions

View File

@@ -10,8 +10,8 @@ import { Swatch, ProductSlider } from '@components/product'
import { Button, Container } from '@components/ui'
import { HTMLContent } from '@components/core'
import useAddItem from '@lib/bigcommerce/cart/use-add-item'
import type { ProductNode } from '@lib/bigcommerce/api/operations/get-product'
import useAddItem from '@bigcommerce/storefront-data-hooks/dist/cart/use-add-item'
import type { ProductNode } from '@bigcommerce/storefront-data-hooks/dist/api/operations/get-product'
import { getProductOptions } from '../helpers'
interface Props {