Losing my mind, but always fixing the types 🕺

This commit is contained in:
Luis Alvarez
2020-10-27 03:26:54 -05:00
parent 9ad0f0ef6b
commit 6fb5b412a8
3 changed files with 40 additions and 57 deletions

View File

@@ -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,