We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77028f7 commit ac94f97Copy full SHA for ac94f97
src/app/[locale]/blog/[slug]/page.tsx
@@ -1,18 +1,13 @@
1
-import BlogDetails from '@/components/blog/BlogDetails'
2
-import React from 'react'
+import BlogDetails from "@/components/blog/BlogDetails";
+import React from "react";
3
4
-type Props = {
5
- params: {
6
- slug: string;
7
- };
8
-};
9
-
10
-const Page = ({ params }: Props) => {
+const page = async ({ params }: { params: Promise<{ slug: string }> }) => {
+ const resolvedParams = await params;
11
return (
12
<div>
13
- <BlogDetails params={params} />
+ <BlogDetails params={resolvedParams} />
14
</div>
15
- )
16
-}
+ );
+};
17
18
-export default Page
+export default page;
0 commit comments