would certainly be helpful if it copied the email

This commit is contained in:
2024-07-20 14:46:50 -04:00
parent e2108f3df3
commit a151e2e0ab
3 changed files with 7 additions and 4 deletions
+4 -1
View File
@@ -21,7 +21,10 @@ export default function Footer() {
Copied!
</p>
) : (
<button onClick={() => setMailState(true)} className="hover:underline">alex@alexav.gg</button>
<button onClick={() => {
setMailState(true)
navigator.clipboard.writeText("alex@alexav.gg")
}} className="hover:underline">alex@alexav.gg</button>
)
}