Updated the whole website to work according to the CMS
This commit is contained in:
@@ -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" />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user