We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 419cf60 commit 86e5cbaCopy full SHA for 86e5cba
1 file changed
app/(app)/projects/[slug]/page.tsx
@@ -5,11 +5,12 @@ import Image from "next/image";
5
import { notFound } from "next/navigation";
6
7
interface ProjectPageProps {
8
- params: { slug: string };
+ params: Promise<{ slug: string }>;
9
}
10
11
-export default async function ProjectDetails({ params }: ProjectPageProps) {
12
- const pet = await getPetBySlug(params.slug);
+export default async function ProjectDetails(props: ProjectPageProps) {
+ const { slug } = await props.params;
13
+ const pet = await getPetBySlug(slug);
14
if (!pet) return notFound();
15
console.log(pet);
16
return (
0 commit comments