diff --git a/src/app/(frontend)/events/[id]/page.tsx b/src/app/(frontend)/events/[id]/page.tsx index 0188884..fe8109c 100644 --- a/src/app/(frontend)/events/[id]/page.tsx +++ b/src/app/(frontend)/events/[id]/page.tsx @@ -6,6 +6,7 @@ import configPromise from '@payload-config' import { getPayload } from 'payload' import { canContributeContent, canEditContent, hasRole } from '@/access/roles' +import { Card } from '@/components/Card' import { Comments } from '@/components/Comments' import { ContributionRequestCard } from '../../_components/ContributionRequestCard' import type { @@ -268,19 +269,19 @@ export default async function SessionDetailPage({ params: paramsPromise }: Args) {canViewFullDetails && (isPast || posts.length) ? (
{posts.length ? ( -
+
{groupPosts(posts).map(([contentType, group]) => ( -
+

{contentTypeLabels[contentType] || contentType}

-
+
{group.map((post) => ( - - {post.title} - + relationTo="posts" + showCategories={false} + /> ))}