From 3c95494d13bfad0fc77ed0a9c04f570251f1cf15 Mon Sep 17 00:00:00 2001 From: Borghild Date: Fri, 16 Aug 2024 10:23:43 +0200 Subject: [PATCH] :art: update past events --- .../pastEvents/PastEventsListItem.tsx | 25 +++++++------------ 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/web/pageComponents/topicPages/promotions/pastEvents/PastEventsListItem.tsx b/web/pageComponents/topicPages/promotions/pastEvents/PastEventsListItem.tsx index ebca88555..5f3f81408 100644 --- a/web/pageComponents/topicPages/promotions/pastEvents/PastEventsListItem.tsx +++ b/web/pageComponents/topicPages/promotions/pastEvents/PastEventsListItem.tsx @@ -1,4 +1,4 @@ -import { Heading } from '@core/Typography' +import { Heading, Typography } from '@core/Typography' import { EventCardData } from '../../../../types/types' import { forwardRef, HTMLAttributes } from 'react' import { twMerge } from 'tailwind-merge' @@ -7,18 +7,12 @@ import { toPlainText } from '@portabletext/react' import { PortableTextBlock } from '@portabletext/types' import { FormattedDateParts, useIntl } from 'react-intl' import { BaseLink } from '@core/Link' -import Blocks from '../../../../pageComponents/shared/portableText/Blocks' -import FormattedDateTime from '@core/FormattedDateTime/FormattedDateTime' export type PastEventsListItemProps = { event: EventCardData hasSectionTitle: boolean } & HTMLAttributes -/** - * Event Card component. - * Remember to wrap in ul and li if in a list. - * */ const PastEventsListItem = forwardRef(function PastEventsListItem( { event, className = '', hasSectionTitle = true, ...rest }, ref, @@ -26,7 +20,7 @@ const PastEventsListItem = forwardRef
- {/* {start && } */} {start && ( {(parts) => { return (
{`${parts[0].value} ${parts[2].value}`} - {/*
- {parts[0].value} - {parts[2].value} -
*/} {parts[4].value}
) @@ -67,14 +56,18 @@ const PastEventsListItem = forwardRef )}
-
+
- {ingress && } + {location && ( + + {location} + + )}
)