diff --git a/src/components/admin/devices/admin-devices-overview.tsx b/src/components/admin/devices/admin-devices-overview.tsx index ac187b5..ecbf130 100644 --- a/src/components/admin/devices/admin-devices-overview.tsx +++ b/src/components/admin/devices/admin-devices-overview.tsx @@ -5783,66 +5783,6 @@ export function DeviceDetails({ device }: DeviceDetailsProps) { ) : null} - {/* Postura/Alertas */} - {Array.isArray(device?.postureAlerts) && device?.postureAlerts?.length ? ( -
-

Alertas de postura

-
- {device?.postureAlerts?.map((a: { kind?: string; message?: string; severity?: string }, i: number) => ( -
- {a?.message ?? formatPostureAlertKind(a?.kind)} - {formatPostureAlertKind(a?.kind)} -
- ))} -
-

- Última avaliação: {device?.lastPostureAt ? formatRelativeTime(new Date(device.lastPostureAt)) : "—"} -

-
- ) : null} - - {!isManualMobile ? ( -
-
-

Histórico de alertas

- {deviceAlertsHistory.length > 0 ? ( - - Últimos {deviceAlertsHistory.length} {deviceAlertsHistory.length === 1 ? "evento" : "eventos"} - - ) : null} -
- {deviceAlertsHistory.length > 0 ? ( -
-
-
    - {deviceAlertsHistory.map((alert) => { - const date = new Date(alert.createdAt) - return ( -
  1. - -
    - {formatPostureAlertKind(alert.kind)} - {formatRelativeTime(date)} -
    -

    {alert.message ?? formatPostureAlertKind(alert.kind)}

    -

    {format(date, "dd/MM/yyyy HH:mm:ss")}

    -
  2. - ) - })} -
-
- ) : ( -

Nenhum alerta registrado para este dispositivo.

- )} -
- ) : null} -
{Array.isArray(software) && software.length > 0 ? (