Refactor IP copy functionality into a reusable component
Extracted the "Copy IP" button to a new `CopyIpComponent` to improve reusability and modularity. Updated `HomeComponent` to use this new component and removed redundant methods for copying text to the clipboard. Added tests and styles for the new component.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<button type="button" style="margin-top: 50px;" class="button-outer" (click)="copyIpToClipboard()">
|
||||
<span class="button-inner">{{ displayText }}</span>
|
||||
</button>
|
||||
Reference in New Issue
Block a user