feat(hse): Add routing and exports for HSE inspection pages
- Update App.tsx with routes for InspeccionesPage and InspeccionDetailPage - Update AdminLayout.tsx with HSE navigation menu - Update hse/index.ts exports Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
3b5587e1f3
commit
8127abca70
@ -16,7 +16,7 @@ import { ManzanasPage } from './pages/admin/proyectos/ManzanasPage';
|
|||||||
import { DashboardPage } from './pages/admin/dashboard';
|
import { DashboardPage } from './pages/admin/dashboard';
|
||||||
import { ConceptosPage, PresupuestosPage, EstimacionesPage } from './pages/admin/presupuestos';
|
import { ConceptosPage, PresupuestosPage, EstimacionesPage } from './pages/admin/presupuestos';
|
||||||
import { OpportunitiesPage, TendersPage, ProposalsPage, VendorsPage } from './pages/admin/bidding';
|
import { OpportunitiesPage, TendersPage, ProposalsPage, VendorsPage } from './pages/admin/bidding';
|
||||||
import { IncidentesPage, CapacitacionesPage, InspeccionDetailPage } from './pages/admin/hse';
|
import { IncidentesPage, CapacitacionesPage, InspeccionesPage, InspeccionDetailPage } from './pages/admin/hse';
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
return (
|
return (
|
||||||
@ -66,6 +66,7 @@ function App() {
|
|||||||
<Route index element={<Navigate to="incidentes" replace />} />
|
<Route index element={<Navigate to="incidentes" replace />} />
|
||||||
<Route path="incidentes" element={<IncidentesPage />} />
|
<Route path="incidentes" element={<IncidentesPage />} />
|
||||||
<Route path="capacitaciones" element={<CapacitacionesPage />} />
|
<Route path="capacitaciones" element={<CapacitacionesPage />} />
|
||||||
|
<Route path="inspecciones" element={<InspeccionesPage />} />
|
||||||
<Route path="inspecciones/:id" element={<InspeccionDetailPage />} />
|
<Route path="inspecciones/:id" element={<InspeccionDetailPage />} />
|
||||||
</Route>
|
</Route>
|
||||||
</Route>
|
</Route>
|
||||||
|
|||||||
@ -22,6 +22,7 @@ import {
|
|||||||
Users,
|
Users,
|
||||||
AlertTriangle,
|
AlertTriangle,
|
||||||
GraduationCap,
|
GraduationCap,
|
||||||
|
ClipboardCheck,
|
||||||
} from 'lucide-react';
|
} from 'lucide-react';
|
||||||
import clsx from 'clsx';
|
import clsx from 'clsx';
|
||||||
import { useAuthStore } from '../stores/authStore';
|
import { useAuthStore } from '../stores/authStore';
|
||||||
@ -82,6 +83,7 @@ const navSections: NavSection[] = [
|
|||||||
items: [
|
items: [
|
||||||
{ label: 'Incidentes', href: '/admin/hse/incidentes', icon: AlertTriangle },
|
{ label: 'Incidentes', href: '/admin/hse/incidentes', icon: AlertTriangle },
|
||||||
{ label: 'Capacitaciones', href: '/admin/hse/capacitaciones', icon: GraduationCap },
|
{ label: 'Capacitaciones', href: '/admin/hse/capacitaciones', icon: GraduationCap },
|
||||||
|
{ label: 'Inspecciones', href: '/admin/hse/inspecciones', icon: ClipboardCheck },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
export { IncidentesPage } from './IncidentesPage';
|
export { IncidentesPage } from './IncidentesPage';
|
||||||
export { CapacitacionesPage } from './CapacitacionesPage';
|
export { CapacitacionesPage } from './CapacitacionesPage';
|
||||||
|
export { InspeccionesPage } from './InspeccionesPage';
|
||||||
export { InspeccionDetailPage } from './InspeccionDetailPage';
|
export { InspeccionDetailPage } from './InspeccionDetailPage';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user