CLASSROOMIO-T-84: Unresolved Fix
This commit is contained in:
@@ -1,16 +1,21 @@
|
|||||||
|
import { Video, Notebook, PresentationFile } from 'carbon-icons-svelte';
|
||||||
|
|
||||||
export const tabs = [
|
export const tabs = [
|
||||||
{
|
{
|
||||||
label: 'Note',
|
label: 'Note',
|
||||||
|
icon: Notebook,
|
||||||
value: 1,
|
value: 1,
|
||||||
badgeValue: 0
|
badgeValue: 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Slide',
|
label: 'Slide',
|
||||||
|
icon: PresentationFile,
|
||||||
value: 2,
|
value: 2,
|
||||||
badgeValue: 0
|
badgeValue: 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Video',
|
label: 'Video',
|
||||||
|
icon: Video,
|
||||||
value: 3,
|
value: 3,
|
||||||
badgeValue: 0
|
badgeValue: 0
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<script>
|
<script>
|
||||||
import { Video, Notebook, PresentationFile } from 'carbon-icons-svelte';
|
|
||||||
export let tabs = [];
|
export let tabs = [];
|
||||||
export let currentTab;
|
export let currentTab;
|
||||||
export let onChange;
|
export let onChange;
|
||||||
@@ -14,23 +13,11 @@
|
|||||||
: 'dark:bg-gray-500 text-black'} font-semibold focus:outline-none w-16 text-left py-3 mr-10"
|
: 'dark:bg-gray-500 text-black'} font-semibold focus:outline-none w-16 text-left py-3 mr-10"
|
||||||
on:click={onChange(tab.value)}
|
on:click={onChange(tab.value)}
|
||||||
>
|
>
|
||||||
{#if tab.value === 1}
|
<div class="grid grid-cols-3 gap-4 items-center">
|
||||||
<div class="grid grid-cols-3 gap-4 items-center">
|
<svelte:component this={tab.icon} />
|
||||||
<Notebook />
|
{tab.label}
|
||||||
{tab.label}
|
</div>
|
||||||
</div>
|
|
||||||
{:else if tab.value === 2}
|
|
||||||
<div class="grid grid-cols-3 gap-4 items-center">
|
|
||||||
<PresentationFile />
|
|
||||||
{tab.label}
|
|
||||||
</div>
|
|
||||||
{:else}
|
|
||||||
<div class="grid grid-cols-3 gap-4 items-center">
|
|
||||||
<Video />
|
|
||||||
{tab.label}
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
<!-- {tab.label} -->
|
|
||||||
<!-- {#if typeof tab.badgeValue === 'number'}
|
<!-- {#if typeof tab.badgeValue === 'number'}
|
||||||
<Chip value={tab.badgeValue} className="ml-1 bg-gray-300 dark:text-black" />
|
<Chip value={tab.badgeValue} className="ml-1 bg-gray-300 dark:text-black" />
|
||||||
{/if} -->
|
{/if} -->
|
||||||
|
|||||||
Reference in New Issue
Block a user