From 62afe827dccec44f1a1fcea970a7ec58995000fd Mon Sep 17 00:00:00 2001 From: IO <320154041@pcpuma.acatlan.unam.mx> Date: Mon, 16 Feb 2026 19:22:34 -0600 Subject: [PATCH] fixed build --- .../BitacoraSanciones/ApplySanction.tsx | 2 +- .../BitacoraSanciones/TableSanction.tsx | 2 +- .../QuitarSancion/QuitarSancion.tsx | 2 +- app/types/sanction.ts | 18 +++++++++++++++++ app/types/student.ts | 20 +------------------ 5 files changed, 22 insertions(+), 22 deletions(-) create mode 100644 app/types/sanction.ts diff --git a/app/Components/BitacoraSanciones/ApplySanction.tsx b/app/Components/BitacoraSanciones/ApplySanction.tsx index b11f641..d2f1d29 100644 --- a/app/Components/BitacoraSanciones/ApplySanction.tsx +++ b/app/Components/BitacoraSanciones/ApplySanction.tsx @@ -3,7 +3,7 @@ import { useEffect, useState } from "react"; import { envConfig } from "@/app/lib/config"; import { useRouter } from "next/navigation"; -import { Alumno, AlumnoSancion, Sancion } from "@/app/types/student"; +import { Alumno, AlumnoSancion, Sancion } from "@/app/types/sanction"; import TableSanction from "./TableSanction"; import axios from "axios"; import toast from "react-hot-toast"; diff --git a/app/Components/BitacoraSanciones/TableSanction.tsx b/app/Components/BitacoraSanciones/TableSanction.tsx index 9518c44..134b25d 100644 --- a/app/Components/BitacoraSanciones/TableSanction.tsx +++ b/app/Components/BitacoraSanciones/TableSanction.tsx @@ -1,4 +1,4 @@ -import { Alumno, AlumnoSancion } from "@/app/types/student"; +import { Alumno, AlumnoSancion } from "@/app/types/sanction"; interface Props { alumnoSanciones: AlumnoSancion[], diff --git a/app/Components/QuitarSancion/QuitarSancion.tsx b/app/Components/QuitarSancion/QuitarSancion.tsx index ee5c7e7..f1d68d8 100644 --- a/app/Components/QuitarSancion/QuitarSancion.tsx +++ b/app/Components/QuitarSancion/QuitarSancion.tsx @@ -3,8 +3,8 @@ import { envConfig } from "@/app/lib/config"; import { useRouter } from "next/navigation"; import { useEffect, useState } from "react"; -import { Alumno, AlumnoSancion } from "@/app/types/student"; import TableSanction from "../BitacoraSanciones/TableSanction"; +import { Alumno, AlumnoSancion } from "@/app/types/sanction"; import axios from "axios"; function QuitarSancion({ id_cuenta }: { id_cuenta: number }) { diff --git a/app/types/sanction.ts b/app/types/sanction.ts new file mode 100644 index 0000000..47c5b28 --- /dev/null +++ b/app/types/sanction.ts @@ -0,0 +1,18 @@ + +export interface Sancion { + id_sancion: number; + sancion: string; + duracion: number; +} + +export interface Alumno { + id_cuenta: number; + nombre: string; + credito: number; +} + +export interface AlumnoSancion { + id_alumno_sancion: number; + fecha_inicio: string; + sancion: Sancion; +} diff --git a/app/types/student.ts b/app/types/student.ts index 5cae9b5..9a5d9de 100644 --- a/app/types/student.ts +++ b/app/types/student.ts @@ -7,22 +7,4 @@ interface Student { nombre: string; carrera: Carrera; credito: number; -} - -export interface Sancion { - id_sancion: number; - sancion: string; - duracion: number; -} - -export interface Alumno { - id_cuenta: number; - nombre: string; - credito: number; -} - -export interface AlumnoSancion { - id_alumno_sancion: number; - fecha_inicio: string; - sancion: Sancion; -} +} \ No newline at end of file