add address section with google map
This commit is contained in:
@ -4,6 +4,7 @@ import { getClient } from "@/app/client";
|
||||
import { Blocks } from "@/components/blocks/Blocks";
|
||||
import { notFound } from "next/navigation";
|
||||
import { PageHeader } from "@/components/general/PageHeader";
|
||||
import { AddressSection } from "@/components/blocks/AddressSection";
|
||||
|
||||
export const dynamicParams = false;
|
||||
|
||||
@ -72,14 +73,12 @@ export default async function Page({ params }: { params: { url: string[] } }) {
|
||||
if (!page) {
|
||||
return notFound();
|
||||
}
|
||||
|
||||
|
||||
return (
|
||||
<main className="site-main" id="main">
|
||||
<PageHeader
|
||||
heading={page.title}
|
||||
lead={page.lead}
|
||||
/>
|
||||
<PageHeader heading={page.title} lead={page.lead} />
|
||||
<Blocks blocks={page.body} />
|
||||
{page.title === "Praktisk info" && <AddressSection />}
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user