Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Favourite a sock in the SocksListing #5

Open
3 tasks
Laoujin opened this issue May 13, 2019 · 1 comment
Open
3 tasks

Favourite a sock in the SocksListing #5

Laoujin opened this issue May 13, 2019 · 1 comment
Labels
good first issue Good for newcomers hooks Using the new Hooks feature

Comments

@Laoujin
Copy link
Member

Laoujin commented May 13, 2019

File SockFavourite.tsx

Solid star: <i className="fas fa-star" />
Hollow star: <i className="far fa-star" />

Add an event handler to the star icon and toggle between solid / hollow.

Create a PR per Task

  • Save the solid/hollow state in component state
    • Implemented with a Component class
    • Implemented with hooks
  • Persist the favorited socks with ProductRepository.favouriteSock
@Laoujin Laoujin added hooks Using the new Hooks feature good first issue Good for newcomers labels May 13, 2019
@Laoujin
Copy link
Member Author

Laoujin commented Sep 5, 2022

Sebastian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers hooks Using the new Hooks feature
Projects
None yet
Development

No branches or pull requests

1 participant