make separate component for pageContent
This commit is contained in:
@ -2,9 +2,9 @@ import { graphql } from "@/gql";
|
||||
import { AssociationFragment, AssociationIndexFragment } from "@/gql/graphql";
|
||||
import { getClient } from "@/app/client";
|
||||
import { AssociationList } from "@/components/associations/AssociationList";
|
||||
import { Blocks } from "@/components/blocks/Blocks";
|
||||
import Link from "next/link";
|
||||
import { PageHeader } from "@/components/general/PageHeader";
|
||||
import { PageContent } from "@/components/general/PageContent";
|
||||
|
||||
const AssociationIndexDefinition = graphql(`
|
||||
fragment AssociationIndex on AssociationIndex {
|
||||
@ -60,7 +60,7 @@ export default async function Page() {
|
||||
return (
|
||||
<main className="site-main" id="main">
|
||||
<PageHeader heading={index.title} lead={index.lead} />
|
||||
{index.body && <Blocks blocks={index.body} />}
|
||||
{index.body && <PageContent blocks={index.body} />}
|
||||
<AssociationList associations={associations} heading="Foreninger og utvalg" />
|
||||
</main>
|
||||
);
|
||||
|
Reference in New Issue
Block a user