Add more copy buttons

This commit is contained in:
Austen Adler 2023-04-26 22:58:25 -04:00
parent c9c39828a2
commit 021ac810e4
2 changed files with 4 additions and 2 deletions

View File

@ -20,6 +20,7 @@ clearable=true
placeholder="Enter address"></Svelecte> placeholder="Enter address"></Svelecte>
--> -->
<script> <script>
import CopyButton from '$lib/CopyButton.svelte';
export let value; export let value;
</script> </script>
@ -31,5 +32,5 @@ placeholder="Enter address"></Svelecte>
bind:value bind:value
placeholder="Address" placeholder="Address"
on:change on:change
/> /><CopyButton data={value} />
</div> </div>

View File

@ -1,4 +1,5 @@
<script> <script>
import CopyButton from '$lib/CopyButton.svelte';
import { createEventDispatcher } from 'svelte'; import { createEventDispatcher } from 'svelte';
const dispatch = createEventDispatcher(); const dispatch = createEventDispatcher();
@ -31,5 +32,5 @@
bind:value bind:value
placeholder="0.00" placeholder="0.00"
on:change on:change
/> /><CopyButton data={value} />
</div> </div>