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,19 +50,21 @@ function TilesOverlay({ modalSize, children }) {
const group = groups.find((group) => group.id === openGroupId);
if (!openGroupId) {
return null;
}
return (
<>
{openGroupId && (
<Box
sx={{
position: "absolute",
width: "100%",
height: "100%",
top: 0,
}}
bg="overlay"
/>
)}
<Box
sx={{
position: "absolute",
width: "100%",
height: "100%",
top: 0,
}}
bg="overlay"
/>
<ReactResizeDetector
handleWidth
handleHeight