PR feedback

This commit is contained in:
Dean 2024-04-04 09:09:02 +01:00
parent 621ba55943
commit 4d1a18b28b
1 changed files with 1 additions and 4 deletions

View File

@ -10,13 +10,11 @@
const { const {
routeStore, routeStore,
roleStore, roleStore,
styleable,
linkable, linkable,
builderStore, builderStore,
sidePanelStore, sidePanelStore,
appStore, appStore,
} = sdk } = sdk
const component = getContext("component")
const context = getContext("context") const context = getContext("context")
// Legacy props which must remain unchanged for backwards compatibility // Legacy props which must remain unchanged for backwards compatibility
@ -170,7 +168,6 @@
<!-- svelte-ignore a11y-click-events-have-key-events --> <!-- svelte-ignore a11y-click-events-have-key-events -->
<div <div
class="component layout layout--{typeClass}" class="component layout layout--{typeClass}"
use:styleable={$component.styles}
class:desktop={!mobile} class:desktop={!mobile}
class:mobile={!!mobile} class:mobile={!!mobile}
data-id={screenId} data-id={screenId}
@ -286,7 +283,7 @@
class="main-wrapper" class="main-wrapper"
on:click={() => { on:click={() => {
if ($builderStore.inBuilder) { if ($builderStore.inBuilder) {
builderStore.actions.selectComponent($builderStore.screen._id) builderStore.actions.selectComponent(screenId)
} }
}} }}
> >