File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 11import 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
33import Login from "./Login.jsx" ;
44import Dashboard from "./Dashboard.jsx" ;
55import 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
89export 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 ) ;
You can’t perform that action at this time.
0 commit comments