Fix:Added route for Custom NotFoundPage
This commit is contained in:
@@ -4,18 +4,17 @@ 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 DrivethruLandingPage from "./pages/UserPages/DrivethruLandingPage";
|
||||||
import Dashboard from "./pages/UserPages/Dashboard";
|
import Dashboard from "./pages/UserPages/Dashboard";
|
||||||
|
import NotFoundPage from "./pages/UserPages/NotFoundPage";
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
return (
|
return (
|
||||||
<Router>
|
<Router>
|
||||||
<Routes>
|
<Routes>
|
||||||
{/* Landing Page at root ("/") */}
|
|
||||||
<Route path="/" element={<DrivethruLandingPage />} />
|
<Route path="/" element={<DrivethruLandingPage />} />
|
||||||
|
|
||||||
{/* 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 />} />
|
<Route path="/Dashboard" element={<Dashboard />} />
|
||||||
|
<Route path="*" element={<NotFoundPage />} />
|
||||||
</Routes>
|
</Routes>
|
||||||
</Router>
|
</Router>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user