diff options
| author | Adam Soltys <[email protected]> | 2024-11-07 21:16:25 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-11-08 09:27:40 -0800 |
| commit | 32fcc461cd43c8907df5e306d520bb671307eab1 (patch) | |
| tree | 0253780c569998b6c1a5f43026586e94916c3fee /src/components/Code.svelte | |
| parent | be5aa52cea1d57c875cfb22d25c6a866b8de2239 (diff) | |
| download | coinos-ui-32fcc461cd43c8907df5e306d520bb671307eab1.tar.gz coinos-ui-32fcc461cd43c8907df5e306d520bb671307eab1.zip | |
svelte 5
Diffstat (limited to 'src/components/Code.svelte')
| -rw-r--r-- | src/components/Code.svelte | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Code.svelte b/src/components/Code.svelte index 7ec046a6..00ef38a8 100644 --- a/src/components/Code.svelte +++ b/src/components/Code.svelte @@ -2,7 +2,7 @@ import { copyNoNewlines as copy } from "$lib/utils"; import Icon from "$comp/Icon.svelte"; import samples from "$lib/samples"; - export let sample; + let { sample } = $props(); </script> <div @@ -13,7 +13,7 @@ </div> <button class="ml-auto my-auto invert opacity-90" - on:click={() => copy(samples[sample])} + onclick={() => copy(samples[sample])} ><Icon icon="copy" style="w-10 max-w-none" /></button > </div> |
