From 69823b1d5271d0218d25b9d265424d3a890a99b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Tue, 20 Apr 2021 16:44:08 +0200 Subject: [PATCH] clean up Tree Item component --- packages/bbui/src/TreeView/Item.svelte | 32 +++++++++++--------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/packages/bbui/src/TreeView/Item.svelte b/packages/bbui/src/TreeView/Item.svelte index 4f2a54fa2e..1744cd5c8f 100644 --- a/packages/bbui/src/TreeView/Item.svelte +++ b/packages/bbui/src/TreeView/Item.svelte @@ -5,12 +5,14 @@ export let icon; -
  • - {#if $$slots.default} - - +
  • + + {#if $$slots.default} + + {/if} {#if icon} {title} - - {:else} - - {#if icon} - - {/if} - {title} - - {/if} + {#if $$slots.default} + + {/if}
  • \ No newline at end of file