From 0754011909fa4a52c64a6d9dbb443ab14b2882a9 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 20 Aug 2025 18:52:14 +0300 Subject: [PATCH] chore(react): fix type errors --- apps/client/src/widgets/type_widgets/options/other.tsx | 2 +- apps/client/src/widgets/type_widgets/options/text_notes.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/client/src/widgets/type_widgets/options/other.tsx b/apps/client/src/widgets/type_widgets/options/other.tsx index 7275a7450..6ac92b420 100644 --- a/apps/client/src/widgets/type_widgets/options/other.tsx +++ b/apps/client/src/widgets/type_widgets/options/other.tsx @@ -154,7 +154,7 @@ function RevisionSnapshotInterval() { }} + components={{ doc: as React.ReactElement }} /> diff --git a/apps/client/src/widgets/type_widgets/options/text_notes.tsx b/apps/client/src/widgets/type_widgets/options/text_notes.tsx index 650371cff..26324d0cc 100644 --- a/apps/client/src/widgets/type_widgets/options/text_notes.tsx +++ b/apps/client/src/widgets/type_widgets/options/text_notes.tsx @@ -12,7 +12,7 @@ import { Themes } from "@triliumnext/highlightjs"; import { ensureMimeTypesForHighlighting, loadHighlightingTheme } from "../../../services/syntax_highlight"; import { normalizeMimeTypeForCKEditor } from "@triliumnext/commons"; import { getHtml } from "../../react/RawHtml"; -import { CSSProperties } from "preact/compat"; +import type { CSSProperties } from "preact/compat"; import FormText from "../../react/FormText"; import FormTextBox, { FormTextBoxWithUnit } from "../../react/FormTextBox"; import CheckboxList from "./components/CheckboxList"; @@ -294,8 +294,8 @@ function DateTimeFormatOptions() { , - doc: + shortcut: as React.ReactElement, + doc: as React.ReactElement }} />