diff --git a/src/lib/components/ExternalLink.svelte b/src/lib/components/ExternalLink.svelte index 8e47dd6..25930b4 100644 --- a/src/lib/components/ExternalLink.svelte +++ b/src/lib/components/ExternalLink.svelte @@ -35,7 +35,7 @@ {textData?.text} {/if} {#if textData?.showIcon} - {@render linkIcon?.(iconData ?? {})} + {@render linkIcon(iconData ?? {})} {/if} {#if textData?.location === "bottom" || (textData?.location === "right" && textData?.text)} {textData?.text} @@ -44,7 +44,7 @@ {/snippet} {#snippet linkIcon({ type, icon, iconClass }: LinkIconType)} - {#if type === "svg" && icon} + {#if type === "svg" && icon && typeof icon === 'function' && icon.length !== undefined} - {@render icon?.()} + {@render (icon as any)()} {:else if type === "icon" && icon} {@const Icon = icon} diff --git a/src/lib/components/Portfolio.svelte b/src/lib/components/Portfolio.svelte index 0c7e64a..86665e2 100644 --- a/src/lib/components/Portfolio.svelte +++ b/src/lib/components/Portfolio.svelte @@ -1,7 +1,7 @@ @@ -46,7 +46,7 @@ {/snippet} -{#snippet lucideIcon(icon)} +{#snippet lucideIcon(icon: any)} {@const Icon = icon} {/snippet} diff --git a/src/routes/about/TechListItem.svelte b/src/routes/about/TechListItem.svelte index 58e421b..7508982 100644 --- a/src/routes/about/TechListItem.svelte +++ b/src/routes/about/TechListItem.svelte @@ -17,11 +17,9 @@