From c779cea4591c9890378fe2e4f5857062bd2374a4 Mon Sep 17 00:00:00 2001 From: LeshaK Date: Wed, 27 Mar 2024 12:45:03 +0300 Subject: [PATCH] fix demo --- src/demo/IconPack.svelte | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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} -