Added route
This commit is contained in:
parent
f38867598e
commit
2831e2a39e
@ -7,6 +7,7 @@ import Navbar from "react-bootstrap/Navbar";
|
||||
import { Container, Nav, NavbarBrand } from "react-bootstrap";
|
||||
import NavbarToggle from "react-bootstrap/esm/NavbarToggle";
|
||||
import NavbarCollapse from "react-bootstrap/esm/NavbarCollapse";
|
||||
import Dashboard from "./pages/Dashboard";
|
||||
export default class Layout extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
@ -28,8 +29,8 @@ export default class Layout extends React.Component {
|
||||
</header>
|
||||
<main>
|
||||
<Routes>
|
||||
<Route path="/" element={<Welcome></Welcome>}>
|
||||
</Route>
|
||||
<Route path="/" element={<Welcome></Welcome>}></Route>
|
||||
<Route path="/Dashboard" element={<Dashboard></Dashboard>}></Route>
|
||||
</Routes>
|
||||
</main>
|
||||
<footer>
|
||||
|
Loading…
Reference in New Issue
Block a user