Add new org improvements
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
<script>
|
||||
import Avatar from '$lib/components/Avatar/index.svelte';
|
||||
import TextChip from '../Chip/Text.svelte';
|
||||
import ComingSoon from '../ComingSoon/index.svelte';
|
||||
|
||||
export let size;
|
||||
export let size = '';
|
||||
export let hasDivider = false;
|
||||
export let active = false;
|
||||
export let avatar = '';
|
||||
export let avatarText = '';
|
||||
export let text = '';
|
||||
export let onClick;
|
||||
export let onClick = () => {};
|
||||
export let disabled = false;
|
||||
</script>
|
||||
|
||||
@@ -17,7 +19,16 @@
|
||||
'border-b border-gray-100'} {active && 'bg-primary-100 dark:bg-gray-500'}"
|
||||
on:click={onClick}
|
||||
>
|
||||
{#if avatarText}
|
||||
{#if avatar}
|
||||
<Avatar
|
||||
src={avatar}
|
||||
name={text}
|
||||
shape="rounded-md"
|
||||
width="w-7"
|
||||
height="h-7"
|
||||
className="mr-2"
|
||||
/>
|
||||
{:else if avatarText}
|
||||
<TextChip
|
||||
value={avatarText}
|
||||
className="mr-2 bg-primary-200 font-bold dark:bg-gray-600"
|
||||
|
||||
Reference in New Issue
Block a user