help carlos

This commit is contained in:
2026-01-21 17:28:33 -06:00
parent b661479c61
commit 9686bbdd54
3 changed files with 51 additions and 40 deletions
+29 -21
View File
@@ -27,27 +27,35 @@ export default function TableEquipos() {
}
return (
<table style={{ width: "100%", borderCollapse: "collapse" }}>
<thead>
<tr>
<th>Ubicación</th>
<th>Nombre</th>
<th>Plataforma</th>
<th>Área</th>
<th>Activo</th>
</tr>
</thead>
<tbody>
{equipos.map((eq) => (
<tr key={eq.id_equipo}>
<td>{eq.ubicacion}</td>
<td>{eq.nombre_equipo}</td>
<td>{eq.plataforma?.nombre || eq.id_plataforma}</td>
<td>{eq.areaUbicacion?.nombre || eq.id_area_ubicacion}</td>
<td>{eq.activo ? "Sí" : "No"}</td>
<div
style={{
overflow: "auto",
height: "430px",
scrollbarColor: "#2563eb white",
}}
>
<table style={{ width: "100%", borderCollapse: "collapse" }}>
<thead>
<tr>
<th>Ubicación</th>
<th>Nombre</th>
<th>Plataforma</th>
<th>Área</th>
<th>Activo</th>
</tr>
))}
</tbody>
</table>
</thead>
<tbody>
{equipos.map((eq) => (
<tr key={eq.id_equipo}>
<td>{eq.ubicacion}</td>
<td>{eq.nombre_equipo}</td>
<td>{eq.plataforma?.nombre || eq.id_plataforma}</td>
<td>{eq.areaUbicacion?.nombre || eq.id_area_ubicacion}</td>
<td>{eq.activo ? "Sí" : "No"}</td>
</tr>
))}
</tbody>
</table>
</div>
);
}