Added devices id route parameter
This commit is contained in:
		@@ -45,7 +45,7 @@ function App() {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const DashboardComponent = () => {
 | 
					    const DashboardComponent = () => {
 | 
				
			||||||
        return <Typography>Dashboard</Typography>;
 | 
					        return <Link to="/devices/5">This is a link</Link>;
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const DevicesComponent = () => {
 | 
					    const DevicesComponent = () => {
 | 
				
			||||||
@@ -66,7 +66,7 @@ function App() {
 | 
				
			|||||||
                    <Switch>
 | 
					                    <Switch>
 | 
				
			||||||
                        <PublicRoute path="/login" component={AuthComponent} />
 | 
					                        <PublicRoute path="/login" component={AuthComponent} />
 | 
				
			||||||
                        <PrivateRoute path="/" exact authenticated={authenticated} isAdmin={isAdmin} component={DashboardComponent} />
 | 
					                        <PrivateRoute path="/" exact authenticated={authenticated} isAdmin={isAdmin} component={DashboardComponent} />
 | 
				
			||||||
                        <PrivateRoute path="/devices" exact authenticated={authenticated} isAdmin={isAdmin} component={DevicesComponent} />
 | 
					                        <PrivateRoute path="/devices/:id?" exact authenticated={authenticated} isAdmin={isAdmin} component={DevicesComponent} />
 | 
				
			||||||
                        <PrivateRoute path="/heatmap" exact authenticated={authenticated} isAdmin={isAdmin} component={HeatmapComponent} />
 | 
					                        <PrivateRoute path="/heatmap" exact authenticated={authenticated} isAdmin={isAdmin} component={HeatmapComponent} />
 | 
				
			||||||
                    </Switch>
 | 
					                    </Switch>
 | 
				
			||||||
                </BrowserRouter>
 | 
					                </BrowserRouter>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user