Skip to content

Commit

Permalink
Make Register button optional
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardLitt committed Oct 18, 2021
1 parent bfd8955 commit 558bdf4
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/templates/events.js
Expand Up @@ -124,16 +124,18 @@ const EventsTemplate = ({ data }) => {
<Text textStyle='smallLabel' color='primaryBlue'>
{formatDate(nearestEvent.event.date, "MMMM Do YYYY Z a")}
</Text>
<Button
href={nearestEvent.event.eventLink}
as={Link}
isExternal
my='24px'
width='244px'
variant='primary'
>
Register
</Button>
{nearestEvent.event.eventLink && (
<Button
href={nearestEvent.event.eventLink}
as={Link}
isExternal
my='24px'
width='244px'
variant='primary'
>
Register
</Button>
)}
</Box>
</Flex>
</Flex>
Expand Down

0 comments on commit 558bdf4

Please sign in to comment.