Skip to content

Commit ac94f97

Browse files
committed
fixes build #2
1 parent 77028f7 commit ac94f97

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed
Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
1-
import BlogDetails from '@/components/blog/BlogDetails'
2-
import React from 'react'
1+
import BlogDetails from "@/components/blog/BlogDetails";
2+
import React from "react";
33

4-
type Props = {
5-
params: {
6-
slug: string;
7-
};
8-
};
9-
10-
const Page = ({ params }: Props) => {
4+
const page = async ({ params }: { params: Promise<{ slug: string }> }) => {
5+
const resolvedParams = await params;
116
return (
127
<div>
13-
<BlogDetails params={params} />
8+
<BlogDetails params={resolvedParams} />
149
</div>
15-
)
16-
}
10+
);
11+
};
1712

18-
export default Page
13+
export default page;

0 commit comments

Comments
 (0)