Updated some client pages to externalize the Navbar and Footer
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user