diff --git a/src/components/Select.js b/src/components/Select.js
index e56c418..5bc43fc 100644
--- a/src/components/Select.js
+++ b/src/components/Select.js
@@ -24,7 +24,7 @@ function Select({ creatable, ...props }) {
}),
control: (provided, state) => ({
...provided,
- backgroundColor: theme.colors.background,
+ backgroundColor: "transparent",
color: theme.colors.text,
borderColor: theme.colors.text,
opacity: state.isDisabled ? 0.5 : 1,
diff --git a/src/components/map/MapSettings.js b/src/components/map/MapSettings.js
index fdfe0c4..8f05c3b 100644
--- a/src/components/map/MapSettings.js
+++ b/src/components/map/MapSettings.js
@@ -1,7 +1,5 @@
import React, { useEffect, useState } from "react";
-import { Flex, Box, Label, Input, Checkbox, IconButton } from "theme-ui";
-
-import ExpandMoreIcon from "../../icons/ExpandMoreIcon";
+import { Flex, Box, Label, Input, Checkbox } from "theme-ui";
import { isEmpty } from "../../helpers/shared";
import { getGridUpdatedInset } from "../../helpers/grid";
@@ -43,8 +41,6 @@ function MapSettings({
mapState,
onSettingsChange,
onStateSettingsChange,
- showMore,
- onShowMoreChange,
}) {
function handleFlagChange(event, flag) {
if (event.target.checked) {
@@ -177,172 +173,142 @@ function MapSettings({
my={1}
/>
- {showMore && (
- <>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {!mapEmpty && map.type !== "default" && (
-
-
-
-
-
-
- )}
-
-
-
-
-
-
-
-
-
-
- >
- )}
- {
- 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"}
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {!mapEmpty && map.type !== "default" && (
+
+
+
+
+
+
+ )}
+
+
+
+
+
+
+
+
+
+
);
}
diff --git a/src/modals/EditMapModal.js b/src/modals/EditMapModal.js
index 632d9e4..89f2554 100644
--- a/src/modals/EditMapModal.js
+++ b/src/modals/EditMapModal.js
@@ -1,5 +1,6 @@
import React, { useState } from "react";
-import { Button, Flex, Label } from "theme-ui";
+import { Button, Flex, Label, useThemeUI } from "theme-ui";
+import SimpleBar from "simplebar-react";
import Modal from "../components/Modal";
import MapSettings from "../components/map/MapSettings";
@@ -18,6 +19,8 @@ function EditMapModal({
onUpdateMap,
onUpdateMapState,
}) {
+ const { theme } = useThemeUI();
+
function handleClose() {
setMapSettingChanges({});
setMapStateSettingChanges({});
@@ -99,8 +102,6 @@ function EditMapModal({
...mapStateSettingChanges,
};
- const [showMoreSettings, setShowMoreSettings] = useState(true);
-
const layout = useResponsiveLayout();
if (!map) {
@@ -111,29 +112,45 @@ function EditMapModal({
-
);
diff --git a/src/modals/EditTokenModal.js b/src/modals/EditTokenModal.js
index 7bb8516..7d145e8 100644
--- a/src/modals/EditTokenModal.js
+++ b/src/modals/EditTokenModal.js
@@ -1,16 +1,18 @@
import React, { useState } from "react";
-import { Button, Flex, Label } from "theme-ui";
+import { Button, Flex, Label, useThemeUI } from "theme-ui";
+import SimpleBar from "simplebar-react";
import Modal from "../components/Modal";
import TokenSettings from "../components/token/TokenSettings";
import TokenPreview from "../components/token/TokenPreview";
-import LoadingOverlay from "../components/LoadingOverlay";
import { isEmpty } from "../helpers/shared";
import useResponsiveLayout from "../hooks/useResponsiveLayout";
function EditTokenModal({ isOpen, onDone, token, onUpdateToken }) {
+ const { theme } = useThemeUI();
+
function handleClose() {
setTokenSettingChanges({});
onDone();
@@ -47,6 +49,10 @@ function EditTokenModal({ isOpen, onDone, token, onUpdateToken }) {
const layout = useResponsiveLayout();
+ if (!token) {
+ return null;
+ }
+
return (
-
+
Edit token
- {!token ? (
-
-
-
- ) : (
+
- )}
-
-
+
+
+
);