chore: show "Copied!" on copy click
Created a function that edits the text of the "copy" button to "copied!" when it is clicked.
@hahayusuf is attempting to deploy a commit to the reworkd Team on Vercel.
A member of the Team first needs to authorize it.
Should consider setting a timeout and having it go back to "Copy" after a couple of seconds.
That's a good idea, thanks.
Will implement it.
Hey @hahayusuf great work! We should however avoid using document.getElementById when we can and use react standard ways to implement this. See the copy button used in message hover as an example
I have updated it to add the timeout, and react referencing instead of elementId.
I appreciate your feedback. How is it after the last commit?
Addressed by #84