adamhatton / quizle

Frontend React repository for Project Portfolio 5 of the Code Institute Full Stack Web Dev Diploma

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

USER STORY: Like a quiz

adamhatton opened this issue · comments

As a logged in user
I can like a quiz
So that I can show my support for the quizzes that interest me

Acceptance Criteria

  • Logged in users should be able to select a 'like' button on the quiz page
  • The like button should show how many likes the quiz currently has
  • When a user selects the like button the number of likes should increase by 1
  • The like button should give the user feedback to show that it has been selected
  • If a user is not logged in they should be given feedback that they need to login in to like a quiz

Tasks

  • Add jsx for likes button
  • Add logic to jsx to change like button depending on user type
  • Add functions to handle a like
  • Add styling to button