From fdb9dac075690d32d477dfbe99a9f728e06431d1 Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Fri, 19 Apr 2024 17:16:21 -0700 Subject: [PATCH] refactor(components): Refactor CopyInput Re-use Label and Copy components to reduce duplicate code. --- src/lib/components/copyInput.svelte | 74 +++++++++++++++++------------ 1 file changed, 43 insertions(+), 31 deletions(-) diff --git a/src/lib/components/copyInput.svelte b/src/lib/components/copyInput.svelte index b19d9b002..3ff70378d 100644 --- a/src/lib/components/copyInput.svelte +++ b/src/lib/components/copyInput.svelte @@ -1,46 +1,58 @@
- + {#if label} + + {/if}
- +
- + {#key appendTo} + + + {/key}