mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Updated TypeScript to resolve async RSC error
This commit is contained in:
@@ -79,7 +79,6 @@ export default async function Page({ params }: PageParams) {
|
||||
<>
|
||||
<DynamicContentManager content={page?.content} />
|
||||
<Suspense>
|
||||
{/* @ts-expect-error Server Component (https://github.com/vercel/next.js/issues/42292) */}
|
||||
<Footer locale={params.locale} />
|
||||
</Suspense>
|
||||
</>
|
||||
|
@@ -39,7 +39,6 @@ export default async function ProductPage({ params }: CategoryPageParams) {
|
||||
<div className="mb-8 flex w-full flex-col px-4 lg:my-16 lg:px-8 2xl:px-16">
|
||||
<Text variant={'pageHeading'}>{title}</Text>
|
||||
<Suspense>
|
||||
{/* @ts-expect-error Server Component (https://github.com/vercel/next.js/issues/42292) */}
|
||||
<Footer locale={params.locale} />
|
||||
</Suspense>
|
||||
</div>
|
||||
|
@@ -35,7 +35,6 @@ export default async function HomePage({ params }: HomePageParams) {
|
||||
<>
|
||||
<DynamicContentManager content={data?.content} />
|
||||
<Suspense>
|
||||
{/* @ts-expect-error Server Component (https://github.com/vercel/next.js/issues/42292) */}
|
||||
<Footer locale={params.locale} />
|
||||
</Suspense>
|
||||
</>
|
||||
|
@@ -87,7 +87,6 @@ export default async function ProductPage({ params }: ProductPageParams) {
|
||||
/>
|
||||
<ProductView product={product} relatedProducts={[]} />
|
||||
<Suspense>
|
||||
{/* @ts-expect-error Server Component (https://github.com/vercel/next.js/issues/42292) */}
|
||||
<Footer locale={params.locale} />
|
||||
</Suspense>
|
||||
</>
|
||||
|
Reference in New Issue
Block a user