From a0616841bf9d23182ea82e18fe713295c3a21eee Mon Sep 17 00:00:00 2001 From: wukko Date: Wed, 20 Nov 2024 14:15:03 +0600 Subject: [PATCH] web/DonationOption: use icon prop instead of slot --- web/src/components/donate/DonateOptionsCard.svelte | 7 +++---- web/src/components/donate/DonationOption.svelte | 3 ++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/web/src/components/donate/DonateOptionsCard.svelte b/web/src/components/donate/DonateOptionsCard.svelte index dcd1d03c..ab8173cc 100644 --- a/web/src/components/donate/DonateOptionsCard.svelte +++ b/web/src/components/donate/DonateOptionsCard.svelte @@ -176,14 +176,13 @@ showRightScroll = currentPos < maxPos && currentPos !== maxPos; }} > - {#each Object.entries(PRESET_DONATION_AMOUNTS) as [amount, component]} + {#each Object.entries(PRESET_DONATION_AMOUNTS) as [amount, icon]} - - + {icon} + /> {/each} diff --git a/web/src/components/donate/DonationOption.svelte b/web/src/components/donate/DonationOption.svelte index 7e5ca917..1c8fb5a3 100644 --- a/web/src/components/donate/DonationOption.svelte +++ b/web/src/components/donate/DonationOption.svelte @@ -2,6 +2,7 @@ export let price: number; export let desc: string; export let href: string; + export let icon: ConstructorOfATypedSvelteComponent; const USD = new Intl.NumberFormat("en-US", { style: "currency", @@ -17,7 +18,7 @@ }} >