Skip to content

Commit

Permalink
Added router and dynamics page
Browse files Browse the repository at this point in the history
  • Loading branch information
vrushang1234 committed Jun 1, 2024
1 parent 7c37632 commit d0fa8a6
Show file tree
Hide file tree
Showing 7 changed files with 81 additions and 567 deletions.
39 changes: 39 additions & 0 deletions control-station/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions control-station/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@mui/x-charts": "^7.6.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.23.1",
"socket.io-client": "^4.7.2"
},
"devDependencies": {
Expand Down
9 changes: 8 additions & 1 deletion control-station/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { ControlPanel, Navbar } from "@/components";
import usePodData from "./services/usePodData";
import PodContext from "./services/PodContext";
import { Dashboard } from "@/views";
import { BrowserRouter, Route, Routes } from "react-router-dom";
import Dynamics from "./components/Dynamics/Dynamics";

function App() {
const { podData, podSocketClient } = usePodData();
Expand All @@ -10,7 +12,12 @@ function App() {
<main>
<PodContext.Provider value={{ podData, podSocketClient }}>
<Navbar />
<Dashboard />
<BrowserRouter>
<Routes>
<Route path="/" element={<Dashboard />} />
<Route path="dynamics" element={<Dynamics />} />
</Routes>
</BrowserRouter>
<ControlPanel />
</PodContext.Provider>
</main>
Expand Down
3 changes: 3 additions & 0 deletions control-station/src/components/Dynamics/Dynamics.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function Dynamics() {
return <div>Dynamics</div>;
}
Binary file added control-station/src/data/images/FrontPod.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added control-station/src/data/images/SidePod.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d0fa8a6

Please sign in to comment.