Moved back to always showing controls and removed option to disable map change

This commit is contained in:
Mitchell McCaffrey
2020-04-29 21:32:23 +10:00
parent 4b9b06395d
commit ccaa51fe84
5 changed files with 27 additions and 48 deletions

View File

@@ -72,10 +72,10 @@ function MapSettings({
<Label>
<Checkbox
checked={
mapState !== null && mapState.editFlags.includes("drawings")
mapState !== null && mapState.editFlags.includes("drawing")
}
disabled={mapState === null}
onChange={(e) => handleFlagChange(e, "drawings")}
onChange={(e) => handleFlagChange(e, "drawing")}
/>
Drawings
</Label>
@@ -89,16 +89,6 @@ function MapSettings({
/>
Tokens
</Label>
<Label>
<Checkbox
checked={
mapState !== null && mapState.editFlags.includes("map")
}
disabled={mapState === null}
onChange={(e) => handleFlagChange(e, "map")}
/>
Map
</Label>
</Flex>
</Box>
<Box my={2} sx={{ flexGrow: 1 }}>