diff --git a/packages/builder/src/components/userInterface/ComponentSelectionList.svelte b/packages/builder/src/components/userInterface/ComponentSelectionList.svelte index 66df3aa686..169c3ab284 100644 --- a/packages/builder/src/components/userInterface/ComponentSelectionList.svelte +++ b/packages/builder/src/components/userInterface/ComponentSelectionList.svelte @@ -30,34 +30,9 @@ let selectedCategory = categories[0] const onComponentChosen = component => { - if (component.template) { - // onTemplateChosen(component.template) - } else { - store.addChildComponent(component._component) - toggleTab() - } + store.addChildComponent(component._component) + toggleTab() } - - // const onTemplateInstanceChosen = () => { - // selectedComponent = null - // const instance = templateInstances.find( - // i => i.name === selectedTemplateInstance - // ) - // store.addTemplatedComponent(instance.props) - // toggleTab() - // } - - // $: templatesByComponent = groupBy(t => t.component)($store.templates) - // $: standaloneTemplates = pipe( - // templatesByComponent, - // [ - // values, - // flatten, - // filter(t => !$store.components.some(c => c.name === t.component)), - // map(t => ({ name: splitName(t.component).componentName, template: t })), - // uniqBy(t => t.name), - // ] - // )
@@ -78,25 +53,6 @@
- -