Updated TypeScript to resolve async RSC error

This commit is contained in:
Henrik Larsson
2023-08-09 14:40:45 +02:00
parent 336ae78a4b
commit a34b4b628c
5 changed files with 4 additions and 26 deletions

View File

@@ -1,10 +1,8 @@
import Footer from '@/components/layout/footer/footer';
import Text from 'components/ui/text/text';
import { categoryQuery } from 'lib/sanity/queries';
import { clientFetch } from 'lib/sanity/sanity.client';
import { Metadata } from 'next';
import { notFound } from 'next/navigation';
import { Suspense } from 'react';
export async function generateMetadata({
params
@@ -38,9 +36,6 @@ export default async function ProductPage({ params }: CategoryPageParams) {
return (
<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>
<Footer locale={params.locale} />
</Suspense>
</div>
);
}