Files
front-AT/app/Components/QuitarSancion/QuitarSancion.tsx
T

51 lines
1.5 KiB
TypeScript
Raw Normal View History

2025-09-22 16:53:34 -06:00
"use client";
import { useState } from "react";
2025-09-28 01:59:16 -06:00
2025-09-22 16:53:34 -06:00
import styles from "./Page.module.css";
2025-09-23 17:28:23 -06:00
interface quitarSanciones {
2025-09-22 16:53:34 -06:00
id: number;
nombre: string;
motivo: string;
duracion: number;
fecha_sancion: string;
utilizar_equipo: number;
}
function QuitarSancion() {
2025-09-23 17:28:23 -06:00
const [quitarSanciones, SetQuitarSanciones] = useState<quitarSanciones[]>([]);
2025-09-22 16:53:34 -06:00
return (
<section className="containerSection">
2025-10-02 20:47:38 -06:00
<div className={styles.tableContainer} style={{margin:"1rem 0"}}>
2025-09-22 16:53:34 -06:00
<table className={styles.machineTable}>
<thead>
<tr>
<th>id</th>
<th>Nombre</th>
2025-10-01 10:12:41 -06:00
<th>Motivo Sanción</th>
2025-09-22 16:53:34 -06:00
<th>Duracion (semanas) </th>
2025-10-01 10:12:41 -06:00
<th>Fecha Sanción</th>
2025-09-22 16:53:34 -06:00
<th>Podria utilizar el servicio hasta</th>
</tr>
</thead>
<tbody>
2025-09-23 17:28:23 -06:00
{quitarSanciones.map((quitarSanciones, index) => (
2025-09-22 16:53:34 -06:00
<tr key={index}>
2025-09-23 17:28:23 -06:00
<td>{quitarSanciones.id}</td>
<td>{quitarSanciones.nombre}</td>
<td>{quitarSanciones.motivo}</td>
<td>{quitarSanciones.duracion}</td>
<td>{quitarSanciones.fecha_sancion}</td>
<td>{quitarSanciones.utilizar_equipo}</td>
2025-09-22 16:53:34 -06:00
</tr>
))}
</tbody>
</table>
</div>
2025-10-02 20:47:38 -06:00
<button className="button buttonSearch" style={{marginTop:"1rem"}}>Quitar Sanción</button>
2025-09-22 16:53:34 -06:00
</section>
);
}
export default QuitarSancion;