Updated dice tray icon and fixed map interaction with select dice modal open

This commit is contained in:
Mitchell McCaffrey
2020-05-26 15:43:46 +10:00
parent 84b198c851
commit dec8fd3c2e
4 changed files with 114 additions and 85 deletions

View File

@@ -24,14 +24,13 @@ function MapDice() {
title={isExpanded ? "Hide Dice Tray" : "Show Dice Tray"}
onClick={() => setIsExpanded(!isExpanded)}
sx={{
transform: `rotate(${isExpanded ? "0" : "180deg"})`,
display: "block",
backgroundColor: "overlay",
borderRadius: "50%",
}}
m={2}
>
<ExpandMoreDiceIcon />
<ExpandMoreDiceIcon isExpanded={isExpanded} />
</IconButton>
<DiceTray isOpen={isExpanded} />
</Flex>