fix: minor pages ui (#700)
This commit is contained in:
parent
7f7ceec24c
commit
0036ac6afb
3 changed files with 15 additions and 28 deletions
|
|
@ -148,15 +148,15 @@ export const CreateUpdateBlockInline: React.FC<Props> = ({
|
|||
|
||||
useEffect(() => {
|
||||
window.addEventListener("keydown", (e: KeyboardEvent) => {
|
||||
if (e.key === "Escape") onClose();
|
||||
if (e.key === "Escape") handleClose();
|
||||
});
|
||||
|
||||
return () => {
|
||||
window.removeEventListener("keydown", (e: KeyboardEvent) => {
|
||||
if (e.key === "Escape") onClose();
|
||||
if (e.key === "Escape") handleClose();
|
||||
});
|
||||
};
|
||||
}, [onClose]);
|
||||
}, [handleClose]);
|
||||
|
||||
return (
|
||||
<div className="border rounded-[10px] p-2 ml-6">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue