minor button refactor
This commit is contained in:
parent
58477f579e
commit
5e02851a20
@ -44,17 +44,15 @@
|
||||
{#if Icon}
|
||||
<Icon class={children ? "mr-2" : ""}></Icon>
|
||||
{/if}
|
||||
{#if children}
|
||||
{@render children()}
|
||||
{/if}
|
||||
|
||||
{@render children?.()}
|
||||
</a>
|
||||
{:else}
|
||||
<button class={fullClasses} {...others}>
|
||||
{#if Icon}
|
||||
<Icon class={children ? "mr-2" : ""}></Icon>
|
||||
{/if}
|
||||
{#if children}
|
||||
{@render children()}
|
||||
{/if}
|
||||
|
||||
{@render children?.()}
|
||||
</button>
|
||||
{/if}
|
||||
Loading…
x
Reference in New Issue
Block a user