I'm using semantic ui's modal and they have a property called closeIcon
that suppose to close the modal... But it doesn't close. I'm not sure but maybe because the modal's visibility is based on my state that's why their wrapper won't work?
Can I pass a function to the closeIcon
prop instead?