chore(react): fix type errors

This commit is contained in:
Elian Doran 2025-08-20 18:52:14 +03:00
parent 376bb66cab
commit 0754011909
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View File

@ -154,7 +154,7 @@ function RevisionSnapshotInterval() {
<FormText>
<Trans
i18nKey="revisions_snapshot_interval.note_revisions_snapshot_description"
components={{ doc: <a href="https://triliumnext.github.io/Docs/Wiki/note-revisions.html" class="external" />}}
components={{ doc: <a href="https://triliumnext.github.io/Docs/Wiki/note-revisions.html" class="external" /> as React.ReactElement }}
/>
</FormText>
<FormGroup name="revision-snapshot-time-interval" label={t("revisions_snapshot_interval.snapshot_time_interval_label")}>

View File

@ -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() {
<Trans
i18nKey="custom_date_time_format.description"
components={{
shortcut: <KeyboardShortcut actionName="insertDateTimeToText" />,
doc: <a href="https://day.js.org/docs/en/display/format" target="_blank" rel="noopener noreferrer" />
shortcut: <KeyboardShortcut actionName="insertDateTimeToText" /> as React.ReactElement,
doc: <a href="https://day.js.org/docs/en/display/format" target="_blank" rel="noopener noreferrer" /> as React.ReactElement
}}
/>
</FormText>