mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 10:51:06 +00:00
refactor: remove usage of deprecated Icon
component (#1160)
This commit is contained in:
parent
cb014219fd
commit
e2c980e23a
2 changed files with 6 additions and 6 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue