fix: adicionar importacao de Users e renderizacao segura de StepIcon no MapaInterativo

This commit is contained in:
2026-09-10 14:32:17 +00:00
parent 323092dcdb
commit 13306da676
+8 -4
View File
@@ -32,7 +32,8 @@ import {
Layers,
Clock,
Check,
ChevronRight
ChevronRight,
Users
} from 'lucide-react';
import { cn } from '@/lib/utils';
@@ -720,7 +721,9 @@ export default function MapaInterativo() {
{/* DRAWER / GAVETA LATERAL DIDÁTICA (O Coração da Experiência) */}
<Sheet open={selectedStep !== null} onOpenChange={(open) => !open && setSelectedStep(null)}>
<SheetContent side="right" className="w-full sm:max-w-lg overflow-y-auto p-6 space-y-6">
{selectedStep && (
{selectedStep && (() => {
const StepIcon = selectedStep.icon;
return (
<>
{/* Cabeçalho do Drawer */}
<SheetHeader className="space-y-2 border-b border-border/60 pb-4">
@@ -730,7 +733,7 @@ export default function MapaInterativo() {
</Badge>
</div>
<SheetTitle className="text-xl font-extrabold text-foreground flex items-center gap-2">
<selectedStep.icon className={cn("h-6 w-6", selectedStep.phaseColor.accent)} />
{StepIcon && <StepIcon className={cn("h-6 w-6", selectedStep.phaseColor.accent)} />}
{selectedStep.title}
</SheetTitle>
<SheetDescription className="text-xs text-muted-foreground">
@@ -822,7 +825,8 @@ export default function MapaInterativo() {
</div>
</div>
</>
)}
);
})()}
</SheetContent>
</Sheet>
</div>