diff --git a/src/demo/IconPack.svelte b/src/demo/IconPack.svelte index 91842af..99a2cd3 100644 --- a/src/demo/IconPack.svelte +++ b/src/demo/IconPack.svelte @@ -19,8 +19,9 @@ activeIconPath = pageData?.icons[0]?.p || pageData?.path; } - function onSelelectIcon(name: string) { + function onSelelectIcon(name: string, path: string) { activeIcon = name; + activeIconPath = path; copyToClipboard(name); onNotify(`Copied ${name} to clipboard`); } @@ -128,7 +129,10 @@
{#each pageData.icons as it} -