1. Refactors copy to clipboard function as its own util
2. Adds it to AddContactModal as well, since it was missing
Screenshots (if applicable):
No visual change
Issues needing discussion/feedback (optional):
1. The naming is arbitrary, both the util itself (saveToClipboard) and the file it's in (copy). There may be better alternatives
2. Doublecheck whether JSDocs for this util is fully accurate
This PR:
Resolves #582
1. Refactors copy to clipboard function as its own util 2. Adds it to AddContactModal as well, since it was missing
Screenshots (if applicable):
No visual change
Issues needing discussion/feedback (optional):
1. The naming is arbitrary, both the util itself (
saveToClipboard
) and the file it's in (copy
). There may be better alternatives 2. Doublecheck whether JSDocs for this util is fully accurate