refactor: auto ordered imports (#9163)

This commit is contained in:
Marcel Mraz
2025-03-12 15:23:31 +01:00
committed by GitHub
parent 82b9a6b464
commit 21ffaf4d76
421 changed files with 3532 additions and 2763 deletions

View File

@@ -1,4 +1,5 @@
import { useState, useLayoutEffect } from "react";
import { useDevice, useExcalidrawContainer } from "../components/App";
import { THEME } from "../constants";
import { useUIAppState } from "../context/ui-appState";

View File

@@ -1,4 +1,5 @@
import { useEffect, useState } from "react";
import type { Emitter } from "../emitter";
export const useEmitter = <TEvent extends unknown>(

View File

@@ -1,7 +1,9 @@
import { exportToSvg } from "@excalidraw/utils/export";
import { useEffect, useState } from "react";
import { COLOR_PALETTE } from "../colors";
import { atom, useAtom } from "../editor-jotai";
import { exportToSvg } from "@excalidraw/utils/export";
import type { LibraryItem } from "../types";
export type SvgCache = Map<LibraryItem["id"], SVGSVGElement>;

View File

@@ -1,4 +1,5 @@
import { useEffect } from "react";
import { EVENT } from "../constants";
export function useOutsideClick<T extends HTMLElement>(

View File

@@ -1,6 +1,7 @@
import { useEffect } from "react";
import { atom, useAtom } from "../editor-jotai";
import throttle from "lodash.throttle";
import { useEffect } from "react";
import { atom, useAtom } from "../editor-jotai";
const scrollPositionAtom = atom<number>(0);