Hide tile overlay immediately when closed

This commit is contained in:
Mitchell McCaffrey 2021-06-10 20:07:40 +10:00
parent b75db97c26
commit fa8d081079

View File

@ -50,9 +50,12 @@ function TilesOverlay({ modalSize, children }) {
const group = groups.find((group) => group.id === openGroupId);
if (!openGroupId) {
return null;
}
return (
<>
{openGroupId && (
<Box
sx={{
position: "absolute",
@ -62,7 +65,6 @@ function TilesOverlay({ modalSize, children }) {
}}
bg="overlay"
/>
)}
<ReactResizeDetector
handleWidth
handleHeight