add date list component

This commit is contained in:
elisejakob
2024-05-13 01:14:19 +02:00
parent 3f3158204a
commit 87e897147d
3 changed files with 48 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import { getClient } from "@/app/client";
import { Blocks } from "@/components/blocks/Blocks";
import Image from "@/components/general/Image";
import { EventHeader } from "@/components/events/EventHeader";
import { DateList } from "@/components/events/DateList";
export async function generateStaticParams() {
const allEventSlugsQuery = graphql(`
@ -46,6 +47,7 @@ export default async function Page({ params }: { params: { slug: string } }) {
<main className="site-main" id="main">
<EventHeader event={event} />
<section className="page-content">
<DateList />
<Blocks blocks={event.body} />
</section>
</main>