MCPcopy Create free account
hub / github.com/cartesiancs/map3d / handleClose

Function handleClose

src/components/modal/Modal.tsx:67–78  ·  view source on GitHub ↗
(e: any)

Source from the content-addressed store, hash-verified

65 );
66
67 const handleClose = (e: any) => {
68 if (e.target.id != "modal") {
69 return false;
70 }
71 setFadeOutAnimation(`${fadeOut} 0.3s forwards`);
72 setBackgroundAnimation(`${fadeOutBackground} 0.3s forwards`);
73
74 setTimeout(() => {
75 onClose();
76 setOpen(false);
77 }, 280);
78 };
79
80 useEffect(() => {
81 if (isOpen) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected