From 09c7dd6867b05cf2b92c6286ac2c64d267194eff Mon Sep 17 00:00:00 2001 From: Conor_Mack Date: Mon, 20 Apr 2020 15:10:23 +0100 Subject: [PATCH] Adding onComponentChosen fn for new components --- .../userInterface/ComponentSelectionList.svelte | 1 + .../userInterface/ComponentTab/Tab.svelte | 14 ++++++++++++-- .../userInterface/temporaryPanelStructure.js | 4 +++- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/components/userInterface/ComponentSelectionList.svelte b/packages/builder/src/components/userInterface/ComponentSelectionList.svelte index 527301e8f9..8afddfbe24 100644 --- a/packages/builder/src/components/userInterface/ComponentSelectionList.svelte +++ b/packages/builder/src/components/userInterface/ComponentSelectionList.svelte @@ -2,6 +2,7 @@ // This should be fetched from somewhere in the future, rather than be hardcoded. import components from "./temporaryPanelStructure.js" import Tab from "./ComponentTab/Tab.svelte" + import { store } from "builderStore" const categories = components.categories let selectedCategory = categories[0] diff --git a/packages/builder/src/components/userInterface/ComponentTab/Tab.svelte b/packages/builder/src/components/userInterface/ComponentTab/Tab.svelte index 17848d0407..d2e06c8b6b 100644 --- a/packages/builder/src/components/userInterface/ComponentTab/Tab.svelte +++ b/packages/builder/src/components/userInterface/ComponentTab/Tab.svelte @@ -1,13 +1,24 @@