From f0ffde975b8082624a6fe8b1f0ed799ed43b96db Mon Sep 17 00:00:00 2001 From: enlineawork Date: Tue, 8 Sep 2026 10:25:10 -0300 Subject: [PATCH] refactor(f4): decouple findings panel from legacy act type --- web-v2/src/features/inspections/InspectionFindingsPanel.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web-v2/src/features/inspections/InspectionFindingsPanel.tsx b/web-v2/src/features/inspections/InspectionFindingsPanel.tsx index c71f0ea..37ed3dc 100644 --- a/web-v2/src/features/inspections/InspectionFindingsPanel.tsx +++ b/web-v2/src/features/inspections/InspectionFindingsPanel.tsx @@ -4,7 +4,7 @@ import { useAuth } from '../../auth/AuthContext'; import { Alert, EmptyState, LoadingBlock, errorMessage } from '../../components/Feedback'; import { Icon } from '../../components/Icon'; import { listInspectionFindings, updateInspectionFindingFollowUp } from '../../lib/api'; -import type { InspectionAct, InspectionFinding } from '../../lib/api'; +import type { InspectionFinding } from '../../lib/api'; import { formatDateOnly } from '../../lib/format'; import { InspectionEvidencePanel } from './InspectionEvidencePanel'; @@ -84,7 +84,7 @@ function FindingCard({ ; } -export function InspectionFindingsPanel({ act }: { act: InspectionAct }) { +export function InspectionFindingsPanel({ act }: { act: { id: string } }) { const { hasPermission } = useAuth(); const canRead = hasPermission('inspection_findings.read'); const [findings, setFindings] = useState([]);