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