chore: cleanup to imports
This commit is contained in:
parent
d824c8c678
commit
7032892686
|
@ -1,17 +1,17 @@
|
||||||
import Uppy, { State, debugLogger } from "@uppy/core"
|
import Uppy, { type State, debugLogger } from "@uppy/core"
|
||||||
|
|
||||||
import Tus from "@uppy/tus"
|
import Tus from "@uppy/tus"
|
||||||
import toArray from "@uppy/utils/lib/toArray"
|
import toArray from "@uppy/utils/lib/toArray"
|
||||||
|
|
||||||
import {
|
import {
|
||||||
ChangeEvent,
|
type ChangeEvent,
|
||||||
useCallback,
|
useCallback,
|
||||||
useEffect,
|
useEffect,
|
||||||
useMemo,
|
useMemo,
|
||||||
useRef,
|
useRef,
|
||||||
useState
|
useState
|
||||||
} from "react"
|
} from "react"
|
||||||
import DropTarget, { DropTargetOptions } from "./uppy-dropzone"
|
import DropTarget, { type DropTargetOptions } from "./uppy-dropzone"
|
||||||
|
|
||||||
const LISTENING_EVENTS = [
|
const LISTENING_EVENTS = [
|
||||||
"upload",
|
"upload",
|
||||||
|
@ -36,7 +36,7 @@ export function useUppy({
|
||||||
(element: HTMLElement | null) => _setTargetRef(element),
|
(element: HTMLElement | null) => _setTargetRef(element),
|
||||||
[]
|
[]
|
||||||
)
|
)
|
||||||
const [uppyState, setUppyState] = useState<State>()
|
const [, setUppyState] = useState<State>()
|
||||||
const [state, setState] = useState<
|
const [state, setState] = useState<
|
||||||
"completed" | "idle" | "initializing" | "error" | "uploading"
|
"completed" | "idle" | "initializing" | "error" | "uploading"
|
||||||
>("initializing")
|
>("initializing")
|
||||||
|
|
Loading…
Reference in New Issue