Skip to content

Commit

Permalink
Make Youtube link clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
tpmai22 committed Jan 22, 2022
1 parent 6cf6628 commit 85eb481
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/web/src/components/Posts/Post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -391,11 +391,13 @@ const PostComponent = ({ postUrl, currentPost, totalPosts }: Props) => {
)}
<div className={classes.content}>
{isMedia && (
<LiteYouTubeEmbed
id={extractVideoId(post)}
title={post.title}
wrapperClass={`yt-lite ${classes.video}`}
/>
<a>
<LiteYouTubeEmbed
id={extractVideoId(post)}
title={post.title}
wrapperClass={`yt-lite ${classes.video}`}
/>
</a>
)}

<section
Expand Down

0 comments on commit 85eb481

Please sign in to comment.