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

Implement Dynamic Likes for Service Cards #369

Merged
merged 4 commits into from
Oct 28, 2024

Conversation

akshadgujarkar
Copy link
Contributor

[Feature Request]: Make "Like" Feature Dynamic on Services Page Cards #360

Title : Make "Like" Feature Dynamic on Services Page Cards

Issue No. : #360

Code Stack : React.js

Close #360

Video (mandatory)

Screen.Recording.2024-10-28.182033.mp4

Checklist:

  • [ x] I have mentioned the issue number in my Pull Request.
  • [x ] I have commented my code, particularly in hard-to-understand areas
  • [ x] I have created a helpful and easy to understand README.md if its a new page/tech stack
  • [ x] I have gone through the contributing.md file before contributing

Additional context (Mandatory )

  1. State Management: -
    Introduced state management for the like functionality using React's useState hook to track likes dynamically
    for each service.
  2. Dynamic Like Count:
    Modified the handleLikeClick function to update the like state dynamically based on user interaction.
    Adjusted the service card rendering to reflect the current like state, ensuring that the like count updates
    immediately when a user clicks the like button.
    User Experience Improvements:

Benefits : - Enhanced the user experience by providing immediate feedback when a user likes or unlikes a service, promoting engagement.

Are you contributing under any Open-source programme?

  • [x ] I'm a GSSOC-EXT contributor
  • I'm a HACKTOBERFEST contributor

Copy link

netlify bot commented Oct 28, 2024

Deploy Preview for befiteveryday ready!

Name Link
🔨 Latest commit 03d7e92
🔍 Latest deploy log https://app.netlify.com/sites/befiteveryday/deploys/671f8a4baf66d100084ac84b
😎 Deploy Preview https://deploy-preview-369--befiteveryday.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@jeevan10017 jeevan10017 merged commit c8cc644 into Open-Code-Crafters:main Oct 28, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: Make "Like" Feature Dynamic on Services Page Cards
2 participants