From 7de3ae5583fe517ee6bdac5f6225f73204d22e9e Mon Sep 17 00:00:00 2001 From: Michael Novotny Date: Thu, 20 Apr 2023 13:54:04 -0500 Subject: [PATCH] Removes unnecessary async on ProductGridItems (#977) --- app/product/[handle]/page.tsx | 1 - app/search/[collection]/page.tsx | 1 - app/search/page.tsx | 1 - components/layout/product-grid-items.tsx | 2 +- 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/app/product/[handle]/page.tsx b/app/product/[handle]/page.tsx index fa57e811a..5959a00c1 100644 --- a/app/product/[handle]/page.tsx +++ b/app/product/[handle]/page.tsx @@ -105,7 +105,6 @@ async function RelatedProducts({ id }: { id: string }) {
Related Products
- {/* @ts-expect-error Server Component */}
diff --git a/app/search/[collection]/page.tsx b/app/search/[collection]/page.tsx index 96740f394..0e1782b7d 100644 --- a/app/search/[collection]/page.tsx +++ b/app/search/[collection]/page.tsx @@ -41,7 +41,6 @@ export default async function CategoryPage({ params }: { params: { collection: s

{`No products found in this collection`}

) : ( - {/* @ts-expect-error Server Component */} )} diff --git a/app/search/page.tsx b/app/search/page.tsx index 71cab5211..354a2022f 100644 --- a/app/search/page.tsx +++ b/app/search/page.tsx @@ -33,7 +33,6 @@ export default async function SearchPage({ ) : null} {products.length > 0 ? ( - {/* @ts-expect-error Server Component */} ) : null} diff --git a/components/layout/product-grid-items.tsx b/components/layout/product-grid-items.tsx index 337800240..b7903a52c 100644 --- a/components/layout/product-grid-items.tsx +++ b/components/layout/product-grid-items.tsx @@ -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) => (