SE310-1 / W.A.K

W.A.K is a movie tracker web-app developed to simplify and enhance the movie-rating experience while making this process more fun and customisable.
MIT License
2 stars 12 forks source link

Created add to favorites button for frontend #67

Closed skau811 closed 1 year ago

skau811 commented 1 year ago

This PR works towards closing (#53 ) by implementing a very basic yet fully functional add to favorites button, which allows users to add a movie to their favorites list from the movies details page if they like it.

This PR adds : FavoriteButton component for the above described functionanlity. Adding the relevant functions in the FavoriteButton component to add the movie to the list if it not already, and otherwise inform the users that the movie is already added to their favorites list.

Next steps will be the styling of this button and to incorporate a delete movie from favorites list functionality in the front-end.

Screenshots are as follows: Before adding a movie to favorites: image

State of the button after adding to the favorites list: image

State of the favorites list page after the above interaction: image image