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