Updated the code to allow for images

This commit is contained in:
Tiago Ribeiro
2024-04-01 00:50:53 +01:00
parent 1c5f16d42b
commit 3359c47379
24 changed files with 91 additions and 49 deletions

View File

@@ -5,12 +5,12 @@ import ContactUs from "@/templates/ContactUs";
import ContactPage from "@/types/cms/contact";
export default async function Page() {
const {data} = await getData<ContactPage>("contact", "en");
const data = await getData<ContactPage>("contact", "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} />;
<ContactUs data={data} />;
<Footer language="en" />
</main>
);