diff --git a/src/components/map/MapSettings.js b/src/components/map/MapSettings.js index 78090aa..7d5358b 100644 --- a/src/components/map/MapSettings.js +++ b/src/components/map/MapSettings.js @@ -21,8 +21,6 @@ function MapSettings({ mapState, onSettingsChange, onStateSettingsChange, - showMore, - onShowMoreChange, }) { function handleFlagChange(event, flag) { if (event.target.checked) { @@ -131,127 +129,97 @@ function MapSettings({ my={1} /> - {showMore && ( - <> - - - - s.value === map.quality) - } - isDisabled={mapEmpty} - onChange={(option) => - onSettingsChange("quality", option.value) - } - isOptionDisabled={(option) => - mapEmpty || - (option.value !== "original" && - !map.resolutions[option.value]) - } - isSearchable={false} - /> - - - - )} - - - - - - - - - - - )} - { - e.stopPropagation(); - e.preventDefault(); - onShowMoreChange(!showMore); - }} - sx={{ - transform: `rotate(${showMore ? "180deg" : "0"})`, - alignSelf: "center", - }} - aria-label={showMore ? "Show Less" : "Show More"} - title={showMore ? "Show Less" : "Show More"} + - - + + + s.value === map.quality) + } + isDisabled={mapEmpty} + onChange={(option) => onSettingsChange("quality", option.value)} + isOptionDisabled={(option) => + mapEmpty || + (option.value !== "original" && !map.resolutions[option.value]) + } + isSearchable={false} + /> + + + + )} + + + + + + + + + ); } diff --git a/src/modals/EditMapModal.js b/src/modals/EditMapModal.js index 1a0bf0f..7db5671 100644 --- a/src/modals/EditMapModal.js +++ b/src/modals/EditMapModal.js @@ -96,8 +96,6 @@ function EditMapModal({ isOpen, onDone, map, mapState }) { ...mapStateSettingChanges, }; - const [showMoreSettings, setShowMoreSettings] = useState(false); - return (