mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-01-23 21:44:55 +03:00
lint warnings
This commit is contained in:
parent
6131c14067
commit
b60c319dfd
@ -1,4 +1,4 @@
|
|||||||
import { useEffect, useRef, useState } from "react";
|
import { useCallback, useEffect, useRef, useState } from "react";
|
||||||
import { createPortal } from "react-dom";
|
import { createPortal } from "react-dom";
|
||||||
import { XIcon } from "@primer/octicons-react";
|
import { XIcon } from "@primer/octicons-react";
|
||||||
|
|
||||||
@ -25,7 +25,7 @@ export function Modal({
|
|||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
const modalContentRef = useRef<HTMLDivElement | null>(null);
|
const modalContentRef = useRef<HTMLDivElement | null>(null);
|
||||||
|
|
||||||
const handleCloseClick = () => {
|
const handleCloseClick = useCallback(() => {
|
||||||
setIsClosing(true);
|
setIsClosing(true);
|
||||||
const zero = performance.now();
|
const zero = performance.now();
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ export function Modal({
|
|||||||
setIsClosing(false);
|
setIsClosing(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
}, [onClose]);
|
||||||
|
|
||||||
const isTopMostModal = () => {
|
const isTopMostModal = () => {
|
||||||
const openModals = document.querySelectorAll("[role=modal]");
|
const openModals = document.querySelectorAll("[role=modal]");
|
||||||
|
Loading…
Reference in New Issue
Block a user