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:
auto committed 2025-04-05 22:07:53 +02:00
1 parent dee84cc1a9
commit 297bd473a6
7 files changed
+46 -12

No files matched your search

@@ -0,0 +1,3 @@
<button type="button" style="margin-top: 50px;" class="button-outer" (click)="copyIpToClipboard()">
<span class="button-inner">{{ displayText }}</span>
</button>