diff --git a/packages/builder/src/components/userInterface/ComponentSelectionList.svelte b/packages/builder/src/components/userInterface/ComponentSelectionList.svelte index d1958d3d3f..527301e8f9 100644 --- a/packages/builder/src/components/userInterface/ComponentSelectionList.svelte +++ b/packages/builder/src/components/userInterface/ComponentSelectionList.svelte @@ -18,7 +18,7 @@ {/each}
- +
diff --git a/packages/builder/src/components/userInterface/ComponentTab/Item.svelte b/packages/builder/src/components/userInterface/ComponentTab/Item.svelte index 8ecbd6e05e..5730df484c 100644 --- a/packages/builder/src/components/userInterface/ComponentTab/Item.svelte +++ b/packages/builder/src/components/userInterface/ComponentTab/Item.svelte @@ -1,17 +1,15 @@ -
+
- +
-
{name}
+
{component.name}
-

{description}

+

{component.description}

diff --git a/packages/builder/src/components/userInterface/ComponentTab/Tab.svelte b/packages/builder/src/components/userInterface/ComponentTab/Tab.svelte index 8e45c570b3..17848d0407 100644 --- a/packages/builder/src/components/userInterface/ComponentTab/Tab.svelte +++ b/packages/builder/src/components/userInterface/ComponentTab/Tab.svelte @@ -1,10 +1,39 @@ -{#each components as { icon, name, description }} - +{#if !list.isCategory} + +{/if} + +{#each list.type as component} + handleClick(component)} /> {/each} + + diff --git a/packages/builder/src/components/userInterface/temporaryPanelStructure.js b/packages/builder/src/components/userInterface/temporaryPanelStructure.js index 163a93cfb3..e3d656065a 100644 --- a/packages/builder/src/components/userInterface/temporaryPanelStructure.js +++ b/packages/builder/src/components/userInterface/temporaryPanelStructure.js @@ -2,7 +2,8 @@ export default { categories: [ { name: 'Basic', - components: [ + isCategory: true, + type: [ { name: 'Container', description: 'This component contains things within itself', @@ -71,7 +72,8 @@ export default { }, { name: 'Form', - components: [ + isCategory: true, + type: [ { name: 'Button', description: 'A basic html button that is ready for styling', @@ -104,7 +106,8 @@ export default { }, { name: 'Blocks', - components: [ + isCategory: true, + type: [ { name: 'Container', description: 'This component contains things within itself', @@ -173,7 +176,8 @@ export default { }, { name: 'Data', - components: [ + isCategory: true, + type: [ { name: 'Container', description: 'This component contains things within itself',