diff --git a/...[[...slug]]/product-page.tsx b/...[[...slug]]/product-page.tsx
index 1e1e69d71..49d34df0b 100644
--- a/...[[...slug]]/product-page.tsx
+++ b/...[[...slug]]/product-page.tsx
@@ -1,21 +1,19 @@
-import ProductView from "components/product/product-view";
-import { notFound } from "next/navigation";
+import ProductView from 'components/product/product-view';
+import { notFound } from 'next/navigation';
interface ProductPageProps {
- data: object | any
+ data: object | any;
}
// This is a Client Component. It receives data as props and
// has access to state and effects just like Page components
// in the `pages` directory.
-export default function ProductPage({data }: ProductPageProps) {
+export default function ProductPage({ data }: ProductPageProps) {
if (!data) {
return notFound();
}
-
+
const { product } = data;
- return (
-
- )
+ return ;
}
diff --git a/app/[locale]/layout.tsx b/app/[locale]/layout.tsx
index 0546880c4..bdf536ca2 100644
--- a/app/[locale]/layout.tsx
+++ b/app/[locale]/layout.tsx
@@ -59,6 +59,8 @@ export default async function LocaleLayout({ children, params: { locale } }: Loc
{children}
+ {/* @ts-expect-error Server Component */}
+ {/* https://github.com/vercel/next.js/issues/42292 */}