nicanthoni / E-Commerce

MIT License
1 stars 0 forks source link

Add to Cart - Hook #80

Closed nicanthoni closed 2 weeks ago

nicanthoni commented 3 weeks ago

Similar to the recently implemented useWishlist hook, will do the same to add functionality to the Add to Cart button

nicanthoni commented 3 weeks ago

Add to Cart button should change depending on value of inCart state. If inCart, the button should change to "In Cart ✅" or something, and persist

nicanthoni commented 2 weeks ago

Working as intended on ProductsMain view. Need to implement on SingleProduct component next.

nicanthoni commented 2 weeks ago

Completed - implemented on both ProductsMain componenet and SingleProduct component