Feat:Added routes
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
import "./App.css";
|
import "./App.css";
|
||||||
import DrivethruLandingPage from "./pages/DrivethruLandingPage";
|
|
||||||
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
|
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
|
||||||
import Login from "./pages/Authentication/Login";
|
import Login from "./pages/Authentication/Login";
|
||||||
import SignUp from "./pages/Authentication/SignUp";
|
import SignUp from "./pages/Authentication/SignUp";
|
||||||
|
import DrivethruLandingPage from "./pages/UserPages/DrivethruLandingPage";
|
||||||
|
import Dashboard from "./pages/UserPages/Dashboard";
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
return (
|
return (
|
||||||
@@ -14,6 +15,7 @@ function App() {
|
|||||||
{/* Login Page at "/login" */}
|
{/* Login Page at "/login" */}
|
||||||
<Route path="/login" element={<Login />} />
|
<Route path="/login" element={<Login />} />
|
||||||
<Route path="/signup" element={<SignUp />} />
|
<Route path="/signup" element={<SignUp />} />
|
||||||
|
<Route path="/Dashboard" element={<Dashboard />} />
|
||||||
</Routes>
|
</Routes>
|
||||||
</Router>
|
</Router>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user