mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
chore(react): fix type errors
This commit is contained in:
parent
376bb66cab
commit
0754011909
@ -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")}>
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user