From 70cef0429961c1d5c947c76498ff5ff708d2fb3e Mon Sep 17 00:00:00 2001 From: lajbel Date: Mon, 30 Sep 2024 09:31:28 -0300 Subject: [PATCH] feat: delete all button, fix example not running at start --- src/components/Config/ConfigDialog.tsx | 6 +++++ .../Config/Sections/EditorConfig.tsx | 24 +++++++++++++++++++ .../ExamplesBrowser/ExampleEntry.tsx | 4 +--- .../Playground/LoadingPlayground.tsx | 5 +++- src/components/Toolbar/ExampleList.tsx | 4 ++-- src/hooks/useEditor.ts | 21 +--------------- 6 files changed, 38 insertions(+), 26 deletions(-) create mode 100644 src/components/Config/Sections/EditorConfig.tsx diff --git a/src/components/Config/ConfigDialog.tsx b/src/components/Config/ConfigDialog.tsx index 9bd2ec0..415c803 100644 --- a/src/components/Config/ConfigDialog.tsx +++ b/src/components/Config/ConfigDialog.tsx @@ -7,6 +7,7 @@ import { stringToType, type Type } from "../../util/stringToType"; import ConfigCheckbox from "./ConfigCheckbox"; import ConfigGroup from "./ConfigGroup"; import ConfigInput from "./ConfigInput"; +import { EditorConfig } from "./Sections/EditorConfig"; const ConfigDialog = () => { const { @@ -177,7 +178,12 @@ const ConfigDialog = () => { )} + +
+ + +