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