Skip to content

Commit

Permalink
last bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ramory-l committed Jan 6, 2021
1 parent 2e1f957 commit 6cce315
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 additions & 18 deletions frontend/src/components/usersCarousel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,24 +79,28 @@ const UsersCarousel = ({ users, myData }) => {
</div>
))}
</div>
<a
className="carousel-control-prev"
href="#carouselExampleControls"
role="button"
data-slide="next"
onClick={() => handleLikeDislike("like")}
>
<i className="fa fa-thumbs-up text-success" aria-hidden="true"></i>
</a>
<a
className="carousel-control-next"
href="#carouselExampleControls"
role="button"
data-slide="next"
onClick={() => handleLikeDislike("dislike")}
>
<i className="fa fa-thumbs-down text-danger" aria-hidden="true"></i>
</a>
{fetchedUsers.length ? (
<>
<a
className="carousel-control-prev"
href="#carouselExampleControls"
role="button"
data-slide="next"
onClick={() => handleLikeDislike("like")}
>
<i className="fa fa-thumbs-up text-success" aria-hidden="true"></i>
</a>
<a
className="carousel-control-next"
href="#carouselExampleControls"
role="button"
data-slide="next"
onClick={() => handleLikeDislike("dislike")}
>
<i className="fa fa-thumbs-down text-danger" aria-hidden="true"></i>
</a>
</>
) : null}
</div>
);
};
Expand Down

0 comments on commit 6cce315

Please sign in to comment.