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:
2025-04-05 22:07:53 +02:00
parent dee84cc1a9
commit 297bd473a6
7 changed files with 46 additions and 12 deletions
@@ -0,0 +1,3 @@
<button type="button" style="margin-top: 50px;" class="button-outer" (click)="copyIpToClipboard()">
<span class="button-inner">{{ displayText }}</span>
</button>