Skip to content

Commit

Permalink
Added description cards for events so peeps know beforehand what the …
Browse files Browse the repository at this point in the history
…club meetings are about
  • Loading branch information
ryqndev committed Apr 1, 2022
1 parent ad47971 commit ae66459
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/app/pages/Events/components/EventCard/EventCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,19 @@ const EventCard = ({ ...event }) => (
>
<Text color='gray'>{event.type}</Text>
<Text size='L'>{event.title}</Text>
<Text color='gray'>{event?.desc}</Text>

{event?.links
?.filter(
({ label }) => label !== 'Zoom Link' && label !== 'Discord Link'
)
.map(({label, link}) => (
.map(({ label, link }) => (
<a
key={link}
target='noreferer'
className={
'button S fill ' + (label === 'Recording'
? 'blue'
: 'gray')
'button S fill ' +
(label === 'Recording' ? 'blue' : 'gray')
}
href={link}
>
Expand Down

0 comments on commit ae66459

Please sign in to comment.