Fixed more types

This commit is contained in:
Luis Alvarez 2021-02-15 00:09:57 -05:00
parent d9243880a3
commit c636fcbc4b
2 changed files with 4 additions and 2 deletions

View File

@ -8,7 +8,8 @@ import { getCategoryPath, getDesignerPath } from '@lib/search'
interface Props {
categories?: any
brands?: any
products?: Product[]
// TODO: use the product type here
products?: any[]
}
const Head: FC<Props> = ({ categories, brands, products = [] }) => {

View File

@ -7,7 +7,8 @@ import Image, { ImageProps } from 'next/image'
interface Props {
className?: string
product: Product
// TODO: use the product type here
product: any
variant?: 'slim' | 'simple'
imgProps?: Omit<ImageProps, 'src'>
}