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 d61cf56 commit 3f62ddeCopy full SHA for 3f62dde
src/app/proyectos/[id]/page.tsx
@@ -4,12 +4,14 @@ import { notFound } from "next/navigation";
4
import ProjectPage from "@/components/project-page";
5
import { projects } from "@/components/projects";
6
7
-interface Props {
+export default function ProjectRoute({
8
+ params,
9
+}: {
10
params: { id: string };
-}
-
11
-export default function ProjectRoute({ params }: Props) {
+}) {
12
const project = projects.find((p) => p.id === params.id);
13
- if (!project) return notFound();
+ if (!project) {
14
+ return notFound();
15
+ }
16
return <ProjectPage project={project} />;
17
}
0 commit comments