Add new org improvements

This commit is contained in:
Rotimi Best
2023-09-11 11:47:30 +01:00
parent bd2f647ca1
commit 35817f44b9
22 changed files with 269 additions and 138 deletions
@@ -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"