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

Add FAQ Component #21

Merged
merged 3 commits into from
Jun 11, 2023
Merged

Add FAQ Component #21

merged 3 commits into from
Jun 11, 2023

Conversation

evansroy
Copy link
Collaborator

Added toggle functionality for FAQ answers

In this pull request, I implemented a toggle functionality for the FAQ component, improving its usability and simplifying the code.

Changes Made:

  • Simplified the code and enhanced the functionality of the FAQ component.
  • Refactored the code to use the index of the active question instead of a string value.
  • Updated the toggleQuestion function to toggle the active question index.
  • Modified the onClick event of the button to pass the index to the toggleQuestion function.

This update ensures that clicking on the icon now toggles the visibility of the corresponding answer, providing a better user experience.

I encountered no major challenges while implementing this feature, and the code has been tested to ensure its proper functionality.

Thank you for reviewing this pull request. I welcome any feedback or suggestions for improvement.

@vercel
Copy link

vercel bot commented Jun 10, 2023

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

Name Status Preview Comments Updated (UTC)
syt-web-redesign ❌ Failed (Inspect) Jun 10, 2023 7:26pm

@hamisirizwan hamisirizwan merged commit 235eaed into main Jun 11, 2023
@JimmyTron JimmyTron deleted the FAQ branch January 3, 2024 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants