Skip to content
Snippets Groups Projects
Commit 6b56f359 authored by Jose Manuel Serrano Amaut's avatar Jose Manuel Serrano Amaut
Browse files

[REF]: Add eslint-disable-next-line to useEffect in FullScreen component

parent a051c18d
No related branches found
No related tags found
No related merge requests found
......@@ -17,13 +17,12 @@ const FullScreen: React.FC<FullScreenProps> = (props: FullScreenProps) => {
if (evt.key === "Escape") onClose?.();
};
console.log("adding listener");
document.addEventListener("keydown", handleCloseEsc);
return () => {
console.log("removing listener");
document.removeEventListener("keydown", handleCloseEsc);
};
// eslint-disable-next-line
}, []);
return (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment