Skip to content

Commit

Permalink
Add placeholder for events images
Browse files Browse the repository at this point in the history
  • Loading branch information
iAdramelk committed Feb 4, 2020
1 parent 51aef30 commit 6515583
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
1 change: 1 addition & 0 deletions public/static/img/community/event-placeholder.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 12 additions & 10 deletions src/Community/Events/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,18 @@ function CommunityEvent({
</CommunityButton>
}
>
{pictureUrl && (
<ImageWrapper
href={url}
target="_blank"
rel="noreferrer noopener"
onClick={logEventClick}
>
<Image src={pictureUrl} alt="" />
</ImageWrapper>
)}
<ImageWrapper
href={url}
target="_blank"
rel="noreferrer noopener"
onClick={logEventClick}
>
<Image
src={pictureUrl || '/static/img/community/event-placeholder.svg'}
alt=""
/>
</ImageWrapper>

<Link
color={theme.color}
href={url}
Expand Down

0 comments on commit 6515583

Please sign in to comment.