4
0
forked from crowetic/commerce
This commit is contained in:
Belen Curcio
2021-01-10 15:55:11 -03:00
parent 92a2388bd1
commit 0a05182f3b
6 changed files with 43 additions and 45 deletions

View File

@@ -8,10 +8,10 @@ import { getCategoryPath, getDesignerPath } from '@lib/search'
interface Props {
categories?: any
brands?: any
newestProducts?: any
products?: Product[]
}
const Head: FC<Props> = ({ categories, brands, newestProducts }) => {
const Head: FC<Props> = ({ categories, brands, products = [] }) => {
return (
<div className={s.root}>
<div className={s.asideWrapper}>
@@ -48,10 +48,10 @@ const Head: FC<Props> = ({ categories, brands, newestProducts }) => {
</div>
<div className="flex-1">
<Grid layout="normal">
{newestProducts.map(({ node }: any) => (
{products.map((product) => (
<ProductCard
key={node.path}
product={node}
key={product.path}
product={product}
variant="simple"
imgProps={{
width: 480,