From 8fc974efb80398b0e4bc325d484441a02f6f9589 Mon Sep 17 00:00:00 2001 From: Erik Date: Thu, 4 Dec 2025 12:14:56 -0300 Subject: [PATCH] fix: remover 'use client' conflict com generateMetadata --- frontend/src/app/[locale]/projetos/[id]/layout.tsx | 5 +++++ frontend/src/app/[locale]/projetos/[id]/page.tsx | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 frontend/src/app/[locale]/projetos/[id]/layout.tsx diff --git a/frontend/src/app/[locale]/projetos/[id]/layout.tsx b/frontend/src/app/[locale]/projetos/[id]/layout.tsx new file mode 100644 index 0000000..f57b7c1 --- /dev/null +++ b/frontend/src/app/[locale]/projetos/[id]/layout.tsx @@ -0,0 +1,5 @@ +export { generateMetadata } from "./metadata"; + +export default function Layout({ children }: { children: React.ReactNode }) { + return children; +} diff --git a/frontend/src/app/[locale]/projetos/[id]/page.tsx b/frontend/src/app/[locale]/projetos/[id]/page.tsx index 69a0e4a..fc790aa 100644 --- a/frontend/src/app/[locale]/projetos/[id]/page.tsx +++ b/frontend/src/app/[locale]/projetos/[id]/page.tsx @@ -4,7 +4,6 @@ import Link from "next/link"; import { notFound } from "next/navigation"; import { useState, useEffect } from "react"; import { useLocale } from "@/contexts/LocaleContext"; -export { generateMetadata } from "./metadata"; interface Project { id: string;