-
- {t("Hidden Content")}
-
-
- {t(
- "If you are not using all the features of SeaSketch, as in the case of a data portal, you can hide these features from the homepage sidebar."
- )}
-
-
-
{
- hideSketches({
- variables: {
- projectId: props.projectId,
- hidden: !props.hideSketches
- }
- })
- }}
- />
- }
- title={t("Hide Sketching Tools")}
- />
- {
- hideForums({
- variables: {
- projectId: props.projectId,
- hidden: !props.hideForums
- }
- })
- }}
- />
- }
- title={t("Hide Discussion Forums")}
- />
- {
- hideOverlays({
- variables: {
- projectId: props.projectId,
- hidden: !props.hideOverlays
- }
- })
- }}
- />
- }
- title={t("Hide Overlay Layers")}
- />
+ return (
+
+
+
+ {t("Hidden Content")}
+
+
+ {t(
+ "If you are not using all the features of SeaSketch, as in the case of a data portal, you can hide these features from the homepage sidebar."
+ )}
+
+
+ {
+ hideSketches({
+ variables: {
+ projectId: props.projectId,
+ hidden: !props.hideSketches,
+ },
+ });
+ }}
+ />
+ }
+ title={t("Hide Sketching Tools")}
+ />
+ {
+ hideForums({
+ variables: {
+ projectId: props.projectId,
+ hidden: !props.hideForums,
+ },
+ });
+ }}
+ />
+ }
+ title={t("Hide Discussion Forums")}
+ />
+ {
+ hideOverlays({
+ variables: {
+ projectId: props.projectId,
+ hidden: !props.hideOverlays,
+ },
+ });
+ }}
+ />
+ }
+ title={t("Hide Overlay Layers")}
+ />
+
-
+ );
}
function UploadLogoField(props: { slug: string; logoUrl?: string | null }) {
@@ -370,7 +430,7 @@ function UploadLogoField(props: { slug: string; logoUrl?: string | null }) {
slug: props.slug,
logoUrl: acceptedFiles[0],
},
- }).catch((e) => { });
+ }).catch((e) => {});
}, []);
const { getRootProps, getInputProps, isDragActive } = useDropzone({ onDrop });
@@ -378,10 +438,11 @@ function UploadLogoField(props: { slug: string; logoUrl?: string | null }) {
<>
{props.logoUrl ? (
@@ -427,7 +488,7 @@ function UploadLogoField(props: { slug: string; logoUrl?: string | null }) {
logoUrl: e.target.files[0],
},
})
- .catch((e) => { })
+ .catch((e) => {})
.then(() => {
target.value = "";
});
@@ -477,7 +538,7 @@ function AccessControlSettings() {
};
await mutate({
variables,
- }).catch((e) => { });
+ }).catch((e) => {});
};
const toggleIsListed = async () => {
@@ -564,8 +625,9 @@ function AccessControlSettings() {
/>