From 13306da676ad72059abc71d3ae97d2d461e23094 Mon Sep 17 00:00:00 2001 From: Marcos Reifonas Date: Thu, 10 Sep 2026 14:32:17 +0000 Subject: [PATCH] fix: adicionar importacao de Users e renderizacao segura de StepIcon no MapaInterativo --- src/pages/MapaInterativo.tsx | 44 ++++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/src/pages/MapaInterativo.tsx b/src/pages/MapaInterativo.tsx index 067c668..b1f4d56 100644 --- a/src/pages/MapaInterativo.tsx +++ b/src/pages/MapaInterativo.tsx @@ -32,7 +32,8 @@ import { Layers, Clock, Check, - ChevronRight + ChevronRight, + Users } from 'lucide-react'; import { cn } from '@/lib/utils'; @@ -720,23 +721,25 @@ export default function MapaInterativo() { {/* DRAWER / GAVETA LATERAL DIDÁTICA (O Coração da Experiência) */} !open && setSelectedStep(null)}> - {selectedStep && ( - <> - {/* Cabeçalho do Drawer */} - -
- - Etapa {selectedStep.orderNumber} • {selectedStep.phaseName} - -
- - - {selectedStep.title} - - - {selectedStep.subtitle} - -
+ {selectedStep && (() => { + const StepIcon = selectedStep.icon; + return ( + <> + {/* Cabeçalho do Drawer */} + +
+ + Etapa {selectedStep.orderNumber} • {selectedStep.phaseName} + +
+ + {StepIcon && } + {selectedStep.title} + + + {selectedStep.subtitle} + +
{/* Botão de Ação Direta para a Tela Real */}
@@ -821,8 +824,9 @@ export default function MapaInterativo() { ))}
- - )} + + ); + })()}