forked from crowetic/commerce
Merge pull request #19 from marbiano/pdp-add-to-wishlist
PDP add to wishlist
This commit is contained in:
commit
cadfa6070b
@ -13,6 +13,7 @@ import { HTMLContent } from '@components/core'
|
|||||||
import useAddItem from '@bigcommerce/storefront-data-hooks/dist/cart/use-add-item'
|
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 type { ProductNode } from '@bigcommerce/storefront-data-hooks/dist/api/operations/get-product'
|
||||||
import { getProductOptions } from '../helpers'
|
import { getProductOptions } from '../helpers'
|
||||||
|
import WishlistButton from '@components/wishlist/WishlistButton'
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
className?: string
|
className?: string
|
||||||
@ -143,9 +144,11 @@ const ProductView: FC<Props> = ({ product, className }) => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* TODO make it work */}
|
{/* TODO make it work */}
|
||||||
<div className={s.wishlistButton}>
|
<WishlistButton
|
||||||
<Heart />
|
className={s.wishlistButton}
|
||||||
</div>
|
productId={product.entityId}
|
||||||
|
variant={product.variants.edges?.[0]!}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</Container>
|
</Container>
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user