Refactor EventItem component to use div instead of p tags for event descriptions

This commit is contained in:
Simon Larsen 2023-12-16 21:01:57 +00:00
parent ec9e6252a1
commit 14c6bdb3b4
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE

View File

@ -95,21 +95,21 @@ const EventItem: FunctionComponent<ComponentProps> = (
</h2>
</div>
{props.eventDescription && (
<p className="mt-2 text-sm">
<div className="mt-2 text-sm">
<MarkdownViewer text={props.eventDescription || ''} />
</p>
</div>
)}
{props.eventSecondDescription && (
<p className="mt-3 text-gray-500 text-sm">
<div className="mt-3 text-gray-500 text-sm">
{props.eventSecondDescription}
</p>
</div>
)}
{props.eventMiniDescription && (
<p className="mt-3 text-gray-400 text-sm">
<div className="mt-3 text-gray-400 text-sm">
{props.eventMiniDescription}
</p>
</div>
)}
{props.labels && props.labels.length > 0 ? (