modified request
This commit is contained in:
@@ -5,8 +5,8 @@ import Information from "../../Components/Global/Information/information";
|
||||
import Impressions from "@/app/Components/Impressions/impressions";
|
||||
import ShowError from "@/app/Components/Global/ShowError";
|
||||
|
||||
import { GetStudent } from "@/app/lib/getStudent";
|
||||
import { cookies } from "next/headers";
|
||||
import { GetStudentWhitoutSancion } from "@/app/lib/getStudentWhitoutSancion";
|
||||
|
||||
import "@/app/globals.css";
|
||||
|
||||
@@ -28,7 +28,7 @@ export default async function Page(props: {
|
||||
let errorMessage = "";
|
||||
|
||||
if (numAcount) {
|
||||
const result = await GetStudent(parseInt(numAcount));
|
||||
const result = await GetStudentWhitoutSancion(parseInt(numAcount));
|
||||
|
||||
if (result.error) {
|
||||
errorMessage = `${result.error}`;
|
||||
|
||||
@@ -3,10 +3,10 @@ import Information from "@/app/Components/Global/Information/information";
|
||||
import ShowError from "@/app/Components/Global/ShowError";
|
||||
import Table from "@/app/Components/Global/table";
|
||||
import Inscripcion from "@/app/Components/Receipt/Inscripcion";
|
||||
import { GetStudent } from "@/app/lib/getStudent";
|
||||
|
||||
import Link from "next/link";
|
||||
import { GetRegisterStudent } from "@/app/lib/getRegisterStudent";
|
||||
import { GetStudentWhitoutSancion } from "@/app/lib/getStudentWhitoutSancion";
|
||||
|
||||
import "./inscripcion.css";
|
||||
|
||||
@@ -28,7 +28,7 @@ export default async function Page(props: {
|
||||
if (numAcount) {
|
||||
const idCuenta = parseInt(numAcount);
|
||||
|
||||
const studentResult = await GetStudent(idCuenta);
|
||||
const studentResult = await GetStudentWhitoutSancion(idCuenta);
|
||||
if (studentResult.error) {
|
||||
errorMessage = `${studentResult.error}`;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
.containerTable{
|
||||
overflow: auto;
|
||||
scrollbar-width: none;
|
||||
background-color:rgba(84, 84, 84, 0.2) ;
|
||||
background-color:rgba(84, 84, 84, 0.1) ;
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border-radius: 5px;
|
||||
|
||||
@@ -166,7 +166,7 @@ export default function Inscripcion({
|
||||
const id_plataforma = PLATAFORMA_MAP[plataformaSeleccionada];
|
||||
|
||||
try {
|
||||
const res = await axios.post(
|
||||
await axios.post(
|
||||
`${envConfig.apiUrl}/alumno-inscrito`,
|
||||
{
|
||||
id_cuenta: numAcount,
|
||||
|
||||
Reference in New Issue
Block a user