Skip to content

Commit

Permalink
Merge pull request vercel#19 from marbiano/pdp-add-to-wishlist
Browse files Browse the repository at this point in the history
PDP add to wishlist
  • Loading branch information
okbel committed Oct 27, 2020
2 parents c8faf23 + f843e6b commit cadfa60
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions components/product/ProductView/ProductView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { HTMLContent } from '@components/core'
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'
import WishlistButton from '@components/wishlist/WishlistButton'

interface Props {
className?: string
Expand Down Expand Up @@ -143,9 +144,11 @@ const ProductView: FC<Props> = ({ product, className }) => {
</div>

{/* TODO make it work */}
<div className={s.wishlistButton}>
<Heart />
</div>
<WishlistButton
className={s.wishlistButton}
productId={product.entityId}
variant={product.variants.edges?.[0]!}
/>
</div>
</Container>
)
Expand Down

0 comments on commit cadfa60

Please sign in to comment.