feat(routes): add /lead-verification route + sidebar nav (OWNER/ADMIN/FIELD_AGENT)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user