Updated some client pages to externalize the Navbar and Footer

This commit is contained in:
Tiago Ribeiro
2024-03-21 12:47:03 +00:00
parent 78bdb1b275
commit 1c5f16d42b
6 changed files with 95 additions and 71 deletions

View File

@@ -1,9 +1,17 @@
import {getData} from "@/cms";
import Footer from "@/components/Footer";
import Navbar from "@/components/Navbar";
import ContactUs from "@/templates/ContactUs";
import ContactPage from "@/types/cms/contact";
export default async function Page() {
const {data} = await getData<ContactPage>("contact", "en");
return <ContactUs data={data.data.attributes} page="/contact" language="en" />;
return (
<main className="text-mti-black flex h-screen w-full flex-col bg-white" dir="ltr">
<Navbar currentPage="/contact" language="en" />
<ContactUs data={data.data.attributes} />;
<Footer language="en" />
</main>
);
}