refactor: remove usage of deprecated Icon component (#1160)

This commit is contained in:
metonym 2022-03-12 13:52:59 -08:00 committed by GitHub
commit e2c980e23a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View file

@ -16,8 +16,6 @@
/** Obtain a reference to the HTML anchor element */
export let ref = null;
import Icon from "../../Icon/Icon.svelte";
</script>
<a
@ -29,7 +27,7 @@
rel="{$$restProps.target === '_blank' ? 'noopener noreferrer' : undefined}"
{...$$restProps}
>
<Icon render="{icon}" />
<svelte:component this="{icon}" />
</a>
<style>