refactor(react): normalize imports

This commit is contained in:
Elian Doran
2025-08-10 15:21:49 +03:00
parent 11f6462a31
commit 14e09f5ea0
17 changed files with 19 additions and 20 deletions

View File

@@ -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 {

View File

@@ -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";

View File

@@ -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;

View File

@@ -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;

View File

@@ -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>;

View File

@@ -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[];

View File

@@ -1,4 +1,4 @@
import { CSSProperties } from "preact/compat";
import type { CSSProperties } from "preact/compat";
type HTMLElementLike = string | HTMLElement | JQuery<HTMLElement>;