Skip to content

Commit e792d1b

Browse files
author
Uttam Singh
committed
Fixed React Router Route import
1 parent 4f170cd commit e792d1b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

frontend/src/pages/App.jsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import React from "react";
2-
import { BrowserRouter, Routes, Route } from "react-router-dom";
2+
import { BrowserRouter, Routes, Route } from "react-router-dom"; // ✅ ensure Route is imported
33
import Login from "./Login.jsx";
44
import Dashboard from "./Dashboard.jsx";
55
import AdminDashboard from "./AdminDashboard.jsx";
6-
import ResetPassword from "./ResetPassword.jsx"; // ✅ import added
6+
import ForgotPassword from "./ForgotPassword.jsx";
7+
import ResetPassword from "./ResetPassword.jsx"; // optional
78

89
export default function App() {
910
return (
@@ -12,7 +13,8 @@ export default function App() {
1213
<Route path="/" element={<Login />} />
1314
<Route path="/dashboard" element={<Dashboard />} />
1415
<Route path="/admin-dashboard" element={<AdminDashboard />} />
15-
<Route path="/reset-password" element={<ResetPassword />} /> {/* ✅ added */}
16+
<Route path="/forgot-password" element={<ForgotPassword />} /> {/* ✅ */}
17+
<Route path="/reset-password" element={<ResetPassword />} /> {/* ✅ */}
1618
</Routes>
1719
</BrowserRouter>
1820
);

0 commit comments

Comments
 (0)