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 Price from "@/templates/Price";
import PricePage from "@/types/cms/price";
export default function Page() {
return <Price language="en" />;
export default async function Page() {
const {data} = await getData<PricePage>("price", "en");
return <Price data={data.data.attributes} language="en" />;
}