From c902c66c56ddad1fb73901e5158c8a41b94247f3 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 17 Jan 2025 16:26:42 +0000 Subject: [PATCH] Add side nav tabs for bindings and state --- .../[screenId]/_components/LeftPanel.svelte | 42 +++++++++++++++++-- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/LeftPanel.svelte b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/LeftPanel.svelte index fa3ad5f6be..b680140170 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/LeftPanel.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/LeftPanel.svelte @@ -1,15 +1,41 @@ -
- +
+ {#each Object.values(Tabs) as tab} + (activeTab = tab)} + > + {tab} + + {/each} +
+ {#if activeTab === Tabs.Components} + + {:else if activeTab === Tabs.Bindings} +
Bindings
+ {:else if activeTab === Tabs.State} +
State
+ {/if}