Skip to content

Commit

Permalink
feat(ui): move Debug to top level tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
hdinia authored and skamril committed Jan 9, 2024
1 parent 8bd739f commit 76a6a59
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down
4 changes: 4 additions & 0 deletions webapp/src/components/App/Singlestudy/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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],
);
Expand Down
4 changes: 2 additions & 2 deletions webapp/src/components/App/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -140,7 +140,6 @@ function App() {
path="bindingcontraint"
element={<BindingConstraints />}
/>
<Route path="debug" element={<DebugView />} />
<Route index element={<Map />} />
<Route path="*" element={<Map />} />
</Route>
Expand All @@ -165,6 +164,7 @@ function App() {
<Route path=":outputId" element={<ResultDetails />} />
<Route index element={<Results />} />
</Route>
<Route path="debug" element={<Debug />} />
<Route path="*" element={<Modelization />}>
<Route index element={<Map />} />
</Route>
Expand Down

0 comments on commit 76a6a59

Please sign in to comment.