This commit is contained in:
Sidharth Vinod
2021-05-18 11:24:20 +05:30
parent d7aa14fae7
commit ba35907877
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ interface TabEvents {
interface Tab {
id: string;
title: string;
icon?: string;
icon: string;
}
interface State {
+1 -1
View File
@@ -47,7 +47,7 @@
? 'text-indigo-500 bg-white border-white'
: 'text-white bg-indigo-500 border-indigo-500 hover:bg-indigo-600'}"
on:click|stopPropagation={() => toggleTabs(tab)}>
{#if tab.icon}<i class={tab.icon} /> {/if}{tab.title}
<i class={tab.icon} />{tab.title}
</div>
</li>
{/each}