(e: any)
| 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) { |
nothing calls this directly
no outgoing calls
no test coverage detected