Last active
October 15, 2021 16:13
-
-
Save biancadragomir/a65c88057f9c19b20443f8df7d898b77 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Popup = () => { | |
... | |
const handleClose = () => { | |
props.closePopup(); | |
} | |
return ( | |
<ClickAwayListener onClickAway={handleClose}> | |
{renderPopupContent()} | |
</ClickAwayListener> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment