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 Terms from "@/templates/Terms";
import TermsAndConditionsPage from "@/types/cms/termsConditions";
export default function Page() {
return <Terms language="ar" />;
export default async function Page() {
const {data} = await getData<TermsAndConditionsPage>("terms-and-conditions", "ar");
return <Terms data={data.data.attributes} language="ar" />;
}