Updated the code to allow for images
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user