feat: show connected robots in ui when getting cb pings #15
11
src/App.tsx
11
src/App.tsx
@@ -4,6 +4,7 @@ import './App.css'
|
|||||||
import TemplatePage from './pages/TemplatePage/Template.tsx'
|
import TemplatePage from './pages/TemplatePage/Template.tsx'
|
||||||
import Home from './pages/Home/Home.tsx'
|
import Home from './pages/Home/Home.tsx'
|
||||||
import Robot from './pages/Robot/Robot.tsx';
|
import Robot from './pages/Robot/Robot.tsx';
|
||||||
|
import ConnectedRobots from './pages/ConnectedRobots/ConnectedRobots.tsx'
|
||||||
|
|
||||||
function App(){
|
function App(){
|
||||||
|
|
||||||
@@ -27,6 +28,16 @@ function App(){
|
|||||||
<Route path="/" element={<Home />} />
|
<Route path="/" element={<Home />} />
|
||||||
<Route path="/template" element={<TemplatePage />} />
|
<Route path="/template" element={<TemplatePage />} />
|
||||||
<Route path="/robot" element={<Robot />} />
|
<Route path="/robot" element={<Robot />} />
|
||||||
|
<Route
|
||||||
|
path="/ConnectedRobots"
|
||||||
|
// Pass the useState to the page to update from there
|
||||||
|
element={
|
||||||
|
<ConnectedRobots
|
||||||
|
connectedRobots={connectedRobots}
|
||||||
|
setConnectedRobots={setConnectedRobots}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
/>
|
||||||
</Routes>
|
</Routes>
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ function Home() {
|
|||||||
<div className={styles.links}>
|
<div className={styles.links}>
|
||||||
<Link to={"/robot"}>Robot Interaction →</Link>
|
<Link to={"/robot"}>Robot Interaction →</Link>
|
||||||
<Link to={"/template"}>Template →</Link>
|
<Link to={"/template"}>Template →</Link>
|
||||||
|
<Link to={"/ConnectedRobots"}>Connected Robots →</Link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user