From 8ff108db9e82b9db3f2887c6da972d1737287360 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 14 Aug 2025 17:19:38 +0300 Subject: [PATCH] feat(react/settings): basic rendering of React content widgets --- .../widgets/type_widgets/content_widget.ts | 33 ++++++++++--------- .../type_widgets/options/appearance.tsx | 3 ++ 2 files changed, 21 insertions(+), 15 deletions(-) create mode 100644 apps/client/src/widgets/type_widgets/options/appearance.tsx diff --git a/apps/client/src/widgets/type_widgets/content_widget.ts b/apps/client/src/widgets/type_widgets/content_widget.ts index beb9de272..7f1b675bf 100644 --- a/apps/client/src/widgets/type_widgets/content_widget.ts +++ b/apps/client/src/widgets/type_widgets/content_widget.ts @@ -47,6 +47,9 @@ import type BasicWidget from "../basic_widget.js"; import CodeTheme from "./options/code_notes/code_theme.js"; import RelatedSettings from "./options/appearance/related_settings.js"; import EditorFeaturesOptions from "./options/text_notes/features.js"; +import type { JSX } from "preact/jsx-runtime"; +import AppearanceSettings from "./options/appearance.jsx"; +import { renderReactWidget } from "../react/ReactBasicWidget.jsx"; const TPL = /*html*/`