mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
New changes and initial Features API
This commit is contained in:
@@ -3,7 +3,9 @@ import cn from 'classnames'
|
||||
import Link from 'next/link'
|
||||
import s from './ProductCard.module.css'
|
||||
import Image, { ImageProps } from 'next/image'
|
||||
// import WishlistButton from '@components/wishlist/WishlistButton'
|
||||
import frameworkConfig from '@framework/config.json'
|
||||
const isWishlistEnabled = !!frameworkConfig.features.wishlist
|
||||
import WishlistButton from '@components/wishlist/WishlistButton'
|
||||
|
||||
interface Props {
|
||||
className?: string
|
||||
@@ -56,11 +58,13 @@ const ProductCard: FC<Props> = ({
|
||||
{product.price.currencyCode}
|
||||
</span>
|
||||
</div>
|
||||
{/* <WishlistButton
|
||||
{isWishlistEnabled && (
|
||||
<WishlistButton
|
||||
className={s.wishlistButton}
|
||||
productId={product.id}
|
||||
variant={product.variants[0]}
|
||||
/> */}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
<div className={s.imageContainer}>
|
||||
{product?.images && (
|
||||
|
Reference in New Issue
Block a user