From 0d4397c30ca962540aed777adbc5943375eaa8e0 Mon Sep 17 00:00:00 2001 From: jozefhruska Date: Fri, 5 May 2023 14:26:18 +0200 Subject: [PATCH 1/3] feat: expanded tree config option --- packages/ladle/lib/app/src/sidebar/main.tsx | 5 ++++- packages/ladle/lib/app/src/sidebar/tree-view.tsx | 8 ++++---- .../lib/cli/vite-plugin/generate/get-config-import.js | 3 +++ packages/ladle/lib/shared/default-config.js | 1 + packages/ladle/lib/shared/types.ts | 1 + 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/packages/ladle/lib/app/src/sidebar/main.tsx b/packages/ladle/lib/app/src/sidebar/main.tsx index 43ff1080..ebf457e7 100644 --- a/packages/ladle/lib/app/src/sidebar/main.tsx +++ b/packages/ladle/lib/app/src/sidebar/main.tsx @@ -1,5 +1,6 @@ import * as React from "react"; import TreeView from "./tree-view"; +import config from "../get-config"; import type { UpdateStory } from "../../../shared/types"; const Main = ({ @@ -41,6 +42,8 @@ const Main = ({ story.includes(canonicalSearch), ); + console.log("config", config); + return (