fix(hse): Remove unused imports and variables from HSE pages
- Remove unused 'Link' import from InspeccionDetailPage.tsx - Remove unused 'XCircle' import from InspeccionesPage.tsx - Remove unused 'gravedadColors' and 'tipoHallazgoLabels' constants Fixes TypeScript compilation errors. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
8127abca70
commit
5db3ef247d
@ -1,5 +1,5 @@
|
||||
import { useState } from 'react';
|
||||
import { useParams, useNavigate, Link } from 'react-router-dom';
|
||||
import { useParams, useNavigate } from 'react-router-dom';
|
||||
import {
|
||||
ArrowLeft,
|
||||
Plus,
|
||||
|
||||
@ -5,7 +5,6 @@ import {
|
||||
Eye,
|
||||
Search,
|
||||
CheckCircle,
|
||||
XCircle,
|
||||
AlertTriangle,
|
||||
FileCheck,
|
||||
Clock,
|
||||
@ -45,13 +44,6 @@ const estadoLabels: Record<string, string> = {
|
||||
vencida: 'Vencida',
|
||||
};
|
||||
|
||||
const gravedadColors: Record<GravedadHallazgo, string> = {
|
||||
baja: 'bg-green-100 text-green-800',
|
||||
media: 'bg-yellow-100 text-yellow-800',
|
||||
alta: 'bg-orange-100 text-orange-800',
|
||||
critica: 'bg-red-100 text-red-800',
|
||||
};
|
||||
|
||||
const gravedadLabels: Record<GravedadHallazgo, string> = {
|
||||
baja: 'Baja',
|
||||
media: 'Media',
|
||||
@ -59,11 +51,6 @@ const gravedadLabels: Record<GravedadHallazgo, string> = {
|
||||
critica: 'Crítica',
|
||||
};
|
||||
|
||||
const tipoHallazgoLabels: Record<string, string> = {
|
||||
acto_inseguro: 'Acto Inseguro',
|
||||
condicion_insegura: 'Condición Insegura',
|
||||
};
|
||||
|
||||
export function InspeccionesPage() {
|
||||
const [search, setSearch] = useState('');
|
||||
const [tipoFilter, setTipoFilter] = useState('');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user