mirror of
https://github.com/vercel/commerce.git
synced 2025-06-20 06:01:21 +00:00
Remove props destructuring
This commit is contained in:
parent
d18d29a5e9
commit
63dfcbd200
@ -7,6 +7,7 @@ import Image, { ImageProps } from 'next/image'
|
||||
import WishlistButton from '@components/wishlist/WishlistButton'
|
||||
import usePrice from '@framework/product/use-price'
|
||||
import ProductTag from '../ProductTag'
|
||||
|
||||
interface Props {
|
||||
className?: string
|
||||
product: Product
|
||||
@ -23,7 +24,6 @@ const ProductCard: FC<Props> = ({
|
||||
className,
|
||||
noNameTag = false,
|
||||
variant = 'default',
|
||||
...props
|
||||
}) => {
|
||||
const { price } = usePrice({
|
||||
amount: product.price.value,
|
||||
|
Loading…
x
Reference in New Issue
Block a user