make separate component for pageContent

This commit is contained in:
2024-08-09 02:17:15 +02:00
parent aa9244c0ce
commit d1be264bc5
15 changed files with 97 additions and 90 deletions

View File

@@ -1,7 +1,7 @@
import { getClient } from "@/app/client";
import { Blocks } from "@/components/blocks/Blocks";
import { Breadcrumb } from "@/components/general/Breadcrumb";
import { ImageFigure } from "@/components/general/Image";
import { PageContent } from "@/components/general/PageContent";
import { graphql } from "@/gql";
import { NewsFragment } from "@/gql/graphql";
import { formatDate, formatExtendedDateTime } from "@/lib/date";
@@ -71,9 +71,7 @@ export default async function Page({ params }: { params: { slug: string } }) {
/>
)}
</section>
<section className="pageContent">
<Blocks blocks={news.body} />
</section>
<PageContent blocks={news.body} />
</main>
);
}