VaibhavArora314 / StyleShare

A simple web based platform where users can easily create, explore, and share Tailwind CSS components and designs with fellow users.
https://style-share.vercel.app
MIT License
40 stars 68 forks source link

Added Enter to search functionality in posts page #561

Closed Sourabh782 closed 3 months ago

Sourabh782 commented 3 months ago

Pull Request

Title

Added press Enter to search functionality in posts page

Description

Previously, in posts section, while searching for a post we have to click on "search" button to search for a specific keyword post. I added functionality so that, we can directly type our keyword and hit "ENTER" to search, thus improving user experience.

Related Issues

Fixes #549

Changes Made

Added a key event in searchbox which is triggered when ENTER key is pressed, calling the "handleSubmit" function which then takes care of fetching relevant posts.

Checklist

Screenshots (if applicable)

https://github.com/user-attachments/assets/b79db1b5-bf74-4520-af0f-2298eded0829

Additional Notes

Footer Thanks for assigning me this issue.

vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
style-share ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 4, 2024 0:31am
github-actions[bot] commented 3 months ago

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

VaibhavArora314 commented 3 months ago

Remove the console.log comment

Sourabh782 commented 3 months ago

Okk I'll do it

Sourabh782 commented 3 months ago

@VaibhavArora314 removed comment

github-actions[bot] commented 3 months ago

🎉 Your pull request has been successfully merged! 🎉 Thank you for your valuable contribution to our project. Your efforts are greatly appreciated. Feel free to reach out if you have any more contributions or if there's anything else we can assist you with. Keep up the fantastic work! 🚀