diff --git a/webapp/src/components/App/Singlestudy/explore/Configuration/RegionalDistricts/index.tsx b/webapp/src/components/App/Singlestudy/explore/Configuration/RegionalDistricts/index.tsx deleted file mode 100644 index 025121ed72..0000000000 --- a/webapp/src/components/App/Singlestudy/explore/Configuration/RegionalDistricts/index.tsx +++ /dev/null @@ -1,7 +0,0 @@ -import UnderConstruction from "../../../../../common/page/UnderConstruction"; - -function RegionalDistricts() { - return ; -} - -export default RegionalDistricts; diff --git a/webapp/src/components/App/Singlestudy/explore/Configuration/index.tsx b/webapp/src/components/App/Singlestudy/explore/Configuration/index.tsx index bd56ed29fc..2645b4aba4 100644 --- a/webapp/src/components/App/Singlestudy/explore/Configuration/index.tsx +++ b/webapp/src/components/App/Singlestudy/explore/Configuration/index.tsx @@ -5,7 +5,6 @@ import { useMemo, useState } from "react"; import { useOutletContext } from "react-router"; import { useTranslation } from "react-i18next"; import { StudyMetadata } from "../../../../../common/types"; -import UnderConstruction from "../../../../common/page/UnderConstruction"; import PropertiesView from "../../../../common/PropertiesView"; import SplitLayoutView from "../../../../common/SplitLayoutView"; import ListElement from "../common/ListElement"; @@ -13,7 +12,6 @@ import AdequacyPatch from "./AdequacyPatch"; import AdvancedParameters from "./AdvancedParameters"; import General from "./General"; import Optimization from "./Optimization"; -import RegionalDistricts from "./RegionalDistricts"; import TimeSeriesManagement from "./TimeSeriesManagement"; import TableMode from "../../../../common/TableMode"; @@ -28,13 +26,12 @@ function Configuration() { [ { id: 0, name: "General" }, { id: 1, name: "Time-series management" }, - { id: 2, name: "Regional districts" }, - { id: 3, name: "Optimization preferences" }, - Number(study.version) >= 830 && { id: 4, name: "Adequacy Patch" }, - { id: 5, name: "Advanced parameters" }, - { id: 6, name: t("study.configuration.economicOpt") }, - { id: 7, name: t("study.configuration.geographicTrimmingAreas") }, - { id: 8, name: t("study.configuration.geographicTrimmingLinks") }, + { id: 2, name: "Optimization preferences" }, + Number(study.version) >= 830 && { id: 3, name: "Adequacy Patch" }, + { id: 4, name: "Advanced parameters" }, + { id: 5, name: t("study.configuration.economicOpt") }, + { id: 6, name: t("study.configuration.geographicTrimmingAreas") }, + { id: 7, name: t("study.configuration.geographicTrimmingLinks") }, ].filter(Boolean), [study.version, t], ); @@ -59,13 +56,11 @@ function Configuration() { {R.cond([ [R.equals(0), () => ], [R.equals(1), () => ], - [R.equals(1), () => ], - [R.equals(2), () => ], - [R.equals(3), () => ], - [R.equals(4), () => ], - [R.equals(5), () => ], + [R.equals(2), () => ], + [R.equals(3), () => ], + [R.equals(4), () => ], [ - R.equals(6), + R.equals(5), () => ( ( ( - - - {t("common.underConstruction")} - - {previewImage ? ( - - - - PREVIEW - - - preview - - - - ) : undefined} - - ); -} - -UnderConstruction.defaultProps = { - previewImage: undefined, -}; - -export default UnderConstruction;