From c636fcbc4be2a364bb09c1e78b1218114d52dc82 Mon Sep 17 00:00:00 2001 From: Luis Alvarez Date: Mon, 15 Feb 2021 00:09:57 -0500 Subject: [PATCH] Fixed more types --- components/common/HomeAllProductsGrid/HomeAllProductsGrid.tsx | 3 ++- components/product/ProductCard/ProductCard.tsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/components/common/HomeAllProductsGrid/HomeAllProductsGrid.tsx b/components/common/HomeAllProductsGrid/HomeAllProductsGrid.tsx index d55f51f7a..2e01fa0cb 100644 --- a/components/common/HomeAllProductsGrid/HomeAllProductsGrid.tsx +++ b/components/common/HomeAllProductsGrid/HomeAllProductsGrid.tsx @@ -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 = ({ categories, brands, products = [] }) => { diff --git a/components/product/ProductCard/ProductCard.tsx b/components/product/ProductCard/ProductCard.tsx index 464f097e8..461524855 100644 --- a/components/product/ProductCard/ProductCard.tsx +++ b/components/product/ProductCard/ProductCard.tsx @@ -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 }