forked from crowetic/commerce
Removes unnecessary async on ProductGridItems (#977)
This commit is contained in:
parent
acb4ff400b
commit
7de3ae5583
@ -105,7 +105,6 @@ async function RelatedProducts({ id }: { id: string }) {
|
||||
<div className="px-4 py-8">
|
||||
<div className="mb-4 text-3xl font-bold">Related Products</div>
|
||||
<Grid className="grid-cols-2 lg:grid-cols-5">
|
||||
{/* @ts-expect-error Server Component */}
|
||||
<ProductGridItems products={relatedProducts} />
|
||||
</Grid>
|
||||
</div>
|
||||
|
@ -41,7 +41,6 @@ export default async function CategoryPage({ params }: { params: { collection: s
|
||||
<p className="py-3 text-lg">{`No products found in this collection`}</p>
|
||||
) : (
|
||||
<Grid className="grid-cols-2 lg:grid-cols-3">
|
||||
{/* @ts-expect-error Server Component */}
|
||||
<ProductGridItems products={products} />
|
||||
</Grid>
|
||||
)}
|
||||
|
@ -33,7 +33,6 @@ export default async function SearchPage({
|
||||
) : null}
|
||||
{products.length > 0 ? (
|
||||
<Grid className="grid-cols-2 lg:grid-cols-3">
|
||||
{/* @ts-expect-error Server Component */}
|
||||
<ProductGridItems products={products} />
|
||||
</Grid>
|
||||
) : null}
|
||||
|
@ -3,7 +3,7 @@ import { GridTileImage } from 'components/grid/tile';
|
||||
import { Product } from 'lib/shopify/types';
|
||||
import Link from 'next/link';
|
||||
|
||||
export default async function ProductGridItems({ products }: { products: Product[] }) {
|
||||
export default function ProductGridItems({ products }: { products: Product[] }) {
|
||||
return (
|
||||
<>
|
||||
{products.map((product) => (
|
||||
|
Loading…
x
Reference in New Issue
Block a user