feat(routes): add /lead-verification route + sidebar nav (OWNER/ADMIN/FIELD_AGENT)

This commit is contained in:
Satyam Rastogi
2026-05-29 21:20:40 +05:30
parent f579769e19
commit adfe44426c
2 changed files with 10 additions and 1 deletions
+6
View File
@@ -44,6 +44,7 @@ import LeadProjectPage from './pages/LeadProjectPage';
import StormIntelPage from './pages/StormIntelPage';
import FieldStormZonePage from './pages/FieldStormZonePage';
import UserDetailsPage from './pages/UserDetailsPage';
import LeadVerificationPage from './pages/LeadVerification/LeadVerificationPage';
// ... (existing imports)
const ProtectedRoute = ({ children, allowedRoles }) => {
@@ -95,6 +96,11 @@ function App() {
<UserDetailsPage />
</ProtectedRoute>
} />
<Route path="/lead-verification" element={
<ProtectedRoute allowedRoles={['OWNER', 'ADMIN', 'FIELD_AGENT']}>
<LeadVerificationPage />
</ProtectedRoute>
} />
<Route
path="/emp/fa/dashboard"