Skip to content

Commit

Permalink
Like on PlayThumbnail Preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Angryman18 committed Jul 25, 2022
1 parent ba37aac commit 5f197a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/common/playlists/PlayThumbnail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { BsPlayCircleFill } from "react-icons/bs";
import thumbPlay from "images/thumb-play.png";
import Shimmer from "react-shimmer-effect";
import userImage from "images/user.png";
import Like from "common/components/Like/Like";

const Author = ({ user }) => {
return (
Expand Down Expand Up @@ -66,6 +67,7 @@ const PlayThumbnail = ({ play }) => {
<div className="play-title">{play.name}</div>
{play.user && <Author user={play.user} />}
<div className="mt-1 ">
<Like onLikeClick={null} likeObj={{number: play?.play_like?.length}} />
<div className={`language language-${play.language || "js"}`}></div>
</div>
</div>
Expand Down

0 comments on commit 5f197a3

Please sign in to comment.