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,5 +1,9 @@
import {getData} from "@/cms";
import About from "@/templates/About";
import AboutPage from "@/types/cms/about";
export default function Page() {
return <About language="en" />;
export default async function Page() {
const {data} = await getData<AboutPage>("about", "en");
return <About data={data.data.attributes} language="en" />;
}