Skip to content

Commit

Permalink
♻️ Remove unused import #2610
Browse files Browse the repository at this point in the history
  • Loading branch information
millianapia committed Jan 8, 2025
1 parent a3fc3b5 commit a4e3ed0
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ import { EventCardData } from '../../../../types/index'
import { forwardRef, HTMLAttributes } from 'react'
import { twMerge } from 'tailwind-merge'
import { getEventDates } from '../../../../common/helpers/dateUtilities'
import { toPlainText } from '@portabletext/react'
import { PortableTextBlock } from '@portabletext/types'
import { FormattedDateParts, useIntl } from 'react-intl'
import { FormattedDateParts } from 'react-intl'
import { BaseLink } from '@core/Link'
import { Icon } from '@equinor/eds-core-react'
import { world } from '@equinor/eds-icons'
Expand All @@ -19,12 +17,8 @@ const PastEventsListItem = forwardRef<HTMLAnchorElement, PastEventsListItemProps
{ event, className = '', hasSectionTitle = true, ...rest },
ref,
) {
const intl = useIntl()
const details = intl.formatMessage({ id: 'details', defaultMessage: 'Details' })

const { title, eventDate, location, slug } = event
const { start } = getEventDates(eventDate)
const plainTitle = title ? toPlainText(title as PortableTextBlock[]) : ''

return (
<BaseLink
Expand Down

0 comments on commit a4e3ed0

Please sign in to comment.