mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Losing my mind, but always fixing the types 🕺
This commit is contained in:
@@ -13,20 +13,10 @@ import { Trash } from '@components/icons'
|
||||
import s from './WishlistCard.module.css'
|
||||
|
||||
interface Props {
|
||||
className?: string
|
||||
children?: any
|
||||
data?: ProductData
|
||||
item: WishlistItem
|
||||
}
|
||||
|
||||
interface ProductData {
|
||||
name: string
|
||||
images: any
|
||||
prices: any
|
||||
path: string
|
||||
}
|
||||
|
||||
const WishlistCard: FC<Props> = ({ className, item }) => {
|
||||
const WishlistCard: FC<Props> = ({ item }) => {
|
||||
const product = item.product!
|
||||
const { price } = usePrice({
|
||||
amount: product.prices?.price?.value,
|
||||
|
Reference in New Issue
Block a user