Closed Engineervinay closed 1 year ago
Hey, Vinay hope you're doing well!
do you still need help with this? If so I'd love to help!
Hey @Yuroq Thank You I will assign this issue to you, Please message me if you have any doubt regarding project.
Sounds good, Thank you!
Start json server first then start npm start in other terminal.
I started working on the dislike feature yesterday and got that done, I'm currently working on adding the color red if the user has liked the thread and removing the color once they dislike it. I'll update you once that is done!
Hey Vinay, so I tried to add the feature where the color of the heart turns to red on the SVG but for some reason when I try to change the color on the SVG the outline is the only thing that changes on the heart so instead I the hearts from "React-Icons" and that made everything work right. The heart changes to red on like, and back to normal when thread is unliked. Are you fine with me using the heart icon from react-icons instead of an SVG?
Yeah, No problem you can add from react-icons
I just made the PR if you have any questions let me know!
Thanks, @Yuroq Merged it.
If the thread is already liked then the like should be filled with the color red. we already have the user IDs of the users who liked the thread we just have to see if the current user ID is present in that likes array. if it is then display like as red color.