From c44395887bc7b0b4e2b21e5d6dac7e3b732495f6 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 17 Sep 2025 12:05:06 +0300 Subject: [PATCH] refactor(react): remove deprecated import --- apps/client/src/widgets/collections/board/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/widgets/collections/board/index.tsx b/apps/client/src/widgets/collections/board/index.tsx index e868e5d30..c99a6f1a0 100644 --- a/apps/client/src/widgets/collections/board/index.tsx +++ b/apps/client/src/widgets/collections/board/index.tsx @@ -7,7 +7,7 @@ import Icon from "../../react/Icon"; import { t } from "../../../services/i18n"; import Api from "./api"; import FormTextBox from "../../react/FormTextBox"; -import { createContext, JSX } from "preact"; +import { createContext, TargetedKeyboardEvent } from "preact"; import { onWheelHorizontalScroll } from "../../widget_utils"; import Column from "./column"; import BoardApi from "./api"; @@ -251,7 +251,7 @@ export function TitleEditor({ currentValue, placeholder, save, dismiss, multilin placeholder={placeholder} autoComplete="trilium-title-entry" // forces the auto-fill off better than the "off" value. rows={multiline ? 4 : undefined} - onKeyDown={(e: JSX.TargetedKeyboardEvent) => { + onKeyDown={(e: TargetedKeyboardEvent) => { if (e.key === "Enter" || e.key === "Escape") { e.preventDefault(); shouldSave.current = (e.key === "Enter");