mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 00:05:50 +01:00
refactor(react): normalize imports
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { RefObject } from "preact";
|
||||
import { CSSProperties } from "preact/compat";
|
||||
import type { RefObject } from "preact";
|
||||
import type { CSSProperties } from "preact/compat";
|
||||
import { useRef } from "preact/hooks";
|
||||
|
||||
interface ButtonProps {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Tooltip } from "bootstrap";
|
||||
import { useEffect, useRef } from "preact/compat";
|
||||
import { useEffect, useRef } from "preact/hooks";
|
||||
import { escapeQuotes } from "../../services/utils";
|
||||
import { ComponentChildren } from "preact";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ComponentChildren } from "preact";
|
||||
import Icon from "./Icon";
|
||||
import { CSSProperties } from "preact/compat";
|
||||
import type { CSSProperties } from "preact/compat";
|
||||
|
||||
interface FormListOpts {
|
||||
children: ComponentChildren;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { InputHTMLAttributes, RefObject } from "preact/compat";
|
||||
import type { InputHTMLAttributes, RefObject } from "preact/compat";
|
||||
|
||||
interface FormTextBoxProps extends Pick<InputHTMLAttributes<HTMLInputElement>, "placeholder" | "autoComplete" | "className" | "type" | "name" | "pattern" | "title" | "style"> {
|
||||
id?: string;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { useRef } from "preact/hooks";
|
||||
import { t } from "../../services/i18n";
|
||||
import { useEffect } from "react";
|
||||
import { useEffect } from "preact/hooks";
|
||||
import note_autocomplete, { Options, type Suggestion } from "../../services/note_autocomplete";
|
||||
import type { RefObject } from "preact";
|
||||
import { CSSProperties } from "preact/compat";
|
||||
import type { CSSProperties } from "preact/compat";
|
||||
|
||||
interface NoteAutocompleteProps {
|
||||
inputRef?: RefObject<HTMLInputElement>;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { useEffect, useState } from "preact/hooks";
|
||||
import type FNote from "../../entities/fnote";
|
||||
import froca from "../../services/froca";
|
||||
import { CSSProperties } from "preact/compat";
|
||||
import type { CSSProperties } from "preact/compat";
|
||||
|
||||
interface NoteListProps {
|
||||
noteIds?: string[];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { CSSProperties } from "preact/compat";
|
||||
import type { CSSProperties } from "preact/compat";
|
||||
|
||||
type HTMLElementLike = string | HTMLElement | JQuery<HTMLElement>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user