Skip to content

Commit

Permalink
Added icons instead of words to result.
Browse files Browse the repository at this point in the history
  • Loading branch information
sherakama committed Oct 21, 2024
1 parent 2c61d18 commit 76f2075
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/components/search/Hits/SearchResultAlumniEvent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ import React from 'react';
import sanitize from 'sanitize-html';
import { useLocation } from '@reach/router';
import { DateTime } from 'luxon';
import { CalendarIcon, LocationMarkerIcon } from '@heroicons/react/outline';
import { Heading } from '../../simple/Heading';
import HeroIcon from '../../simple/heroIcon';
import { utmParams } from '../../../utilities/utmParams';
import { checkParams } from '../../../utilities/checkParams';
import { decodeHtmlEntities } from '../../../utilities/decodeHtmlEntities';
import { SrOnlyText } from '../../accessibility/SrOnlyText';

/**
* Alumni Event {Hit}
Expand Down Expand Up @@ -101,13 +103,22 @@ const SearchResultAlumniEvent = ({ result }) => {
</Heading>
{start && end && (
<p className="su-card-paragraph su-leading-snug su-mb-0">
<span className="su-font-semibold">When: </span>
<SrOnlyText>When:</SrOnlyText>{' '}
<CalendarIcon
className="su-inline-block su-shrink-0 su-mr-06em su-w-1em"
aria-hidden="true"
/>
{formattedDateTimeSpan()}{' '}
</p>
)}

<p className="su-card-paragraph su-leading-snug">
<span className="su-font-semibold">Where: </span>
<SrOnlyText>Where:</SrOnlyText>
<LocationMarkerIcon
className="su-inline-block su-shrink-0 su-mr-06em su-w-1em"
aria-hidden="true"
/>

{formattedLocation()}
</p>

Expand Down

0 comments on commit 76f2075

Please sign in to comment.