Updated the whole website to work according to the CMS

This commit is contained in:
Tiago Ribeiro
2024-03-19 01:02:07 +00:00
parent 91ee920b42
commit 5ee1364afb
36 changed files with 617 additions and 648 deletions

View File

@@ -1,6 +1,10 @@
import {getData} from "@/cms";
import Home from "@/templates/Home";
import HomePage from "@/types/cms/home";
import {NextPageContext} from "next";
export default function Page() {
return <Home language="ar" />;
export default async function Page() {
const {data} = await getData<HomePage>("home", "ar");
return <Home data={data.data.attributes} language="ar" />;
}