From 76a6a5905d4f5a8335b53d09c9d875db4a1098f5 Mon Sep 17 00:00:00 2001 From: hatim dinia Date: Tue, 9 Jan 2024 09:55:58 +0100 Subject: [PATCH] feat(ui): move Debug to top level tabs --- .../components/App/Singlestudy/explore/Modelization/index.tsx | 4 ---- webapp/src/components/App/Singlestudy/index.tsx | 4 ++++ webapp/src/components/App/index.tsx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/webapp/src/components/App/Singlestudy/explore/Modelization/index.tsx b/webapp/src/components/App/Singlestudy/explore/Modelization/index.tsx index 121c3fdc58..b034cc2c80 100644 --- a/webapp/src/components/App/Singlestudy/explore/Modelization/index.tsx +++ b/webapp/src/components/App/Singlestudy/explore/Modelization/index.tsx @@ -58,10 +58,6 @@ function Modelization() { label: t("study.bindingconstraints"), path: `${basePath}/bindingcontraint`, }, - { - label: t("study.debug"), - path: `${basePath}/debug`, - }, ]; }, [areaId, areas, dispatch, navigate, study?.id, t]); diff --git a/webapp/src/components/App/Singlestudy/index.tsx b/webapp/src/components/App/Singlestudy/index.tsx index 10f8b87f4f..9a76747915 100644 --- a/webapp/src/components/App/Singlestudy/index.tsx +++ b/webapp/src/components/App/Singlestudy/index.tsx @@ -66,6 +66,10 @@ function SingleStudy(props: Props) { label: t("study.results"), path: `/studies/${studyId}/explore/results`, }, + { + label: t("study.debug"), + path: `/studies/${studyId}/explore/debug`, + }, ], [studyId], ); diff --git a/webapp/src/components/App/index.tsx b/webapp/src/components/App/index.tsx index e34ca31a37..1c7824cfa5 100644 --- a/webapp/src/components/App/index.tsx +++ b/webapp/src/components/App/index.tsx @@ -24,7 +24,7 @@ import BindingConstraints from "./Singlestudy/explore/Modelization/BindingConstr import Links from "./Singlestudy/explore/Modelization/Links"; import Areas from "./Singlestudy/explore/Modelization/Areas"; import Map from "./Singlestudy/explore/Modelization/Map"; -import DebugView from "./Singlestudy/explore/Modelization/DebugView"; +import Debug from "./Singlestudy/explore/Modelization/Debug"; import Xpansion from "./Singlestudy/explore/Xpansion"; import Candidates from "./Singlestudy/explore/Xpansion/Candidates"; import XpansionSettings from "./Singlestudy/explore/Xpansion/Settings"; @@ -140,7 +140,6 @@ function App() { path="bindingcontraint" element={} /> - } /> } /> } /> @@ -165,6 +164,7 @@ function App() { } /> } /> + } /> }> } />