Added route

This commit is contained in:
Piyush Sharma 2022-04-05 02:19:17 -04:00
parent f38867598e
commit 2831e2a39e

View File

@ -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>