Skip to content

Add enhancement options to useCopyCode and buttonClass #1

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

Merged
merged 6 commits into from
Apr 30, 2025
Merged

Add enhancement options to useCopyCode and buttonClass #1

merged 6 commits into from
Apr 30, 2025

Conversation

tuyuritio
Copy link
Contributor

@tuyuritio tuyuritio commented Apr 30, 2025

This PR includes two improvements:

  1. Added displayDuration option to the useCopyCode hook, allowing developers to customize the duration of the feedback message after copying.
  2. Introduced a fallback mechanism for buttonClass to ensure it works correctly in decoupled frontend-backend environments.

@howcasperwhat
Copy link
Owner

Please run npm run lint --fix before commit to fix eslint code formatting problems. (See CONTRIBUTING.md - apologies, I hadn't made it clear in the guide that this step is required)

Thanks!

@tuyuritio
Copy link
Contributor Author

Oh... I apologize for my series of improper actions. I think it should be fixed now.

@howcasperwhat howcasperwhat merged commit 2dda6a1 into howcasperwhat:main Apr 30, 2025
howcasperwhat added a commit that referenced this pull request May 1, 2025
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.

2 participants