mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
refactor(icon): remove old logic to infer icon size from function name
This commit is contained in:
parent
696c5dcb2a
commit
6d12d7e6e2
1 changed files with 0 additions and 4 deletions
|
@ -13,14 +13,10 @@
|
|||
export let skeleton = false;
|
||||
|
||||
import IconSkeleton from "./Icon.Skeleton.svelte";
|
||||
|
||||
$: iconName = render.toString().split(" ")[1];
|
||||
$: size = parseInt(iconName.slice(-2), 10);
|
||||
</script>
|
||||
|
||||
{#if skeleton}
|
||||
<IconSkeleton
|
||||
size="{size}"
|
||||
{...$$restProps}
|
||||
on:click
|
||||
on:mouseover
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue