mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
make <Image>
Apple M1 comp (workaround)
This commit is contained in:
@@ -3,10 +3,19 @@ import cn from 'classnames'
|
||||
import Link from 'next/link'
|
||||
import type { Product } from '@commerce/types/product'
|
||||
import s from './ProductCard.module.css'
|
||||
import Image, { ImageProps } from 'next/image'
|
||||
import NextImage, { ImageProps } from 'next/image'
|
||||
import WishlistButton from '@components/wishlist/WishlistButton'
|
||||
import usePrice from '@framework/product/use-price'
|
||||
import ProductTag from '../ProductTag'
|
||||
|
||||
const Image = (props: any) => {
|
||||
return (
|
||||
<NextImage
|
||||
unoptimized={process.env.NODE_ENV === 'development'}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
}
|
||||
interface Props {
|
||||
className?: string
|
||||
product: Product
|
||||
|
Reference in New Issue
Block a user