From bc536f25666ade9eaa68d21c4396777a2aa62ef0 Mon Sep 17 00:00:00 2001 From: Dekan Brown Date: Wed, 10 Jun 2026 14:18:22 -0600 Subject: [PATCH] Show derived session posts as cards --- src/app/(frontend)/events/[id]/page.tsx | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) 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} + /> ))}