From 7b9377ea1ed91121e1f7f27a6db589ce76e0f4c9 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