codeforpdx / PASS

PASS project - with HMIS module integration
MIT License
24 stars 24 forks source link

[Enhancement] - Refactor copy functionality as a reusable function #582

Closed leekahung closed 2 months ago

leekahung commented 4 months ago

Describe the Current Behavior/Feature:

With our latest changes in Development, we now have a function that lets users copy long URLs associated with webIds and invite links. Given that it might be a function that could be used in other places outside of the Profile page, think it'll be a good idea to make it a reusable function.

Rationale:

Makes copy functionality reusable across the app.

Proposed Changes:

Store the clipboard and addNotification functions together as one function in perhaps utils and make it export from there.

andycwilliams commented 2 months ago

Unassigning myself as this is a good issue for newer contributors

andycwilliams commented 2 months ago

Never mind I'll just finish it lol