mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-21 00:10:33 +02:00
refactor: auto ordered imports (#9163)
This commit is contained in:
@@ -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";
|
||||
|
@@ -1,4 +1,5 @@
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
import type { Emitter } from "../emitter";
|
||||
|
||||
export const useEmitter = <TEvent extends unknown>(
|
||||
|
@@ -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>;
|
||||
|
@@ -1,4 +1,5 @@
|
||||
import { useEffect } from "react";
|
||||
|
||||
import { EVENT } from "../constants";
|
||||
|
||||
export function useOutsideClick<T extends HTMLElement>(
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user