Skip to content

Commit

Permalink
Add pages for the divisions.
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasHeneka committed Dec 27, 2023
1 parent 34c826f commit b956bf8
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/pages/GuidanceControl.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
function GuidanceControl() {

return (
<h1>Guidance Control</h1>
);
}

export default GuidanceControl;
8 changes: 8 additions & 0 deletions src/pages/LevitationControl.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
function LevitationControl() {

return (
<h1>Levitation Control</h1>
);
}

export default LevitationControl;
8 changes: 8 additions & 0 deletions src/pages/MotorControl.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
function MotorControl() {

return (
<h1>Motor Control</h1>
);
}

export default MotorControl;
6 changes: 6 additions & 0 deletions src/pages/PageList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import TerminalIcon from '@mui/icons-material/Terminal';
import GamesIcon from '@mui/icons-material/Games';
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
import ChevronRightIcon from '@mui/icons-material/ChevronRight';
import FlightTakeoff from '@mui/icons-material/FlightTakeoff';
import Speed from '@mui/icons-material/Speed';
import EditRoad from '@mui/icons-material/EditRoad';
import clsx from 'clsx';
import { Link as RouterLink, LinkProps as RouterLinkProps, useNavigate, } from 'react-router-dom';
import { Box, Divider, ListItemButton, Typography } from '@mui/material';
Expand Down Expand Up @@ -117,6 +120,9 @@ export const RouterList = (
<React.Fragment>
<ListItemButtonLink to="/" primary="Overview" icon={<GamesIcon />} />
<ListItemButtonLink to="/TracePanel" primary="Trace" icon={<TerminalIcon />} />
<ListItemButtonLink to="/LevitationControl" primary="Levitation Control" icon={<FlightTakeoff />} />
<ListItemButtonLink to="/GuidanceControl" primary="Guidance Control" icon={<EditRoad />} />
<ListItemButtonLink to="/MotorControl" primary="Motor Control" icon={<Speed />} />
</React.Fragment>
);

Expand Down
6 changes: 6 additions & 0 deletions src/pages/ShowPages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import {NetworkInformation} from "../types/NetworkInformation";
import NodePanel from "./NodePanel";
import {NodeInformation} from "../types/NodeInformation";
import ObjectEntryPanel from "./ObjectEntryPanel";
import LevitationControl from "./LevitationControl.tsx";
import GuidanceControl from "./GuidanceControl.tsx";
import MotorControl from "./MotorControl.tsx";

function Content() {
const location = useLocation();
Expand Down Expand Up @@ -45,6 +48,9 @@ function ShowPages({connectionSuccess}: ConnectionProps) {
<Routes>
<Route index element={<OverviewPanel connectionSuccess={connectionSuccess}/>}/>
<Route path="TracePanel" element={<TracePanel/>}/>
<Route path="LevitationControl" element={<LevitationControl/>}/>
<Route path="GuidanceControl" element={<GuidanceControl/>}/>
<Route path="MotorControl" element={<MotorControl/>}/>
{nodes.map((node) => {

let routes = [<Route key={node.name} path={node.name} element={<NodePanel node={node}/>}/>];
Expand Down

0 comments on commit b956bf8

Please sign in to comment.