Disabled map select when loading a map

This commit is contained in:
Mitchell McCaffrey
2020-07-17 15:57:52 +10:00
parent f25261d70b
commit 61a2e1ac8d
4 changed files with 16 additions and 3 deletions

View File

@@ -11,6 +11,7 @@ function SelectMapButton({
onMapStateChange,
currentMap,
currentMapState,
disabled,
}) {
const [isModalOpen, setIsModalOpen] = useState(false);
@@ -30,6 +31,7 @@ function SelectMapButton({
aria-label="Select Map"
title="Select Map"
onClick={openModal}
disabled={disabled}
>
<SelectMapIcon />
</IconButton>