Skip to content

Commit

Permalink
try await
Browse files Browse the repository at this point in the history
  • Loading branch information
storm1729 committed Dec 28, 2024
1 parent 9d4d693 commit a75bd93
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/app/[lang]/blog/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { notFound } from "next/navigation";

type Params = {
params: Promise<{
lang: string;
slug: string;
}>;
};
Expand All @@ -36,11 +37,8 @@ export async function generateMetadata(props: Params): Promise<Metadata> {
};
}

export default async function Smtp({
params: { lang, slug },
}: {
params: { lang: string; slug: string };
}) {
export default async function BlogPost(props: Params) {
const { lang, slug } = await props.params;
const d = await dictionary(lang);
const blogPost = getPostBySlug(slug);
if (!blogPost) {
Expand Down

0 comments on commit a75bd93

Please sign in to comment.