From f465f55a68f43dcd9e3453e6b0e043df6c4c09f1 Mon Sep 17 00:00:00 2001 From: IO420 <320154041@pcpuma.acatlan.unam.mx> Date: Fri, 28 Nov 2025 19:49:48 -0600 Subject: [PATCH] fix this --- app/globals.css | 3 ++- app/lib/apiClient.ts | 2 ++ app/lib/getStudent.ts | 5 +++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/globals.css b/app/globals.css index c17a6c6..1c3149d 100644 --- a/app/globals.css +++ b/app/globals.css @@ -419,7 +419,7 @@ table { table th, table td { - padding: 0.85rem 1.5rem; + padding: 1rem 1.5rem; } table th { @@ -432,6 +432,7 @@ table th { text-align: center; z-index: 2; border: none; + min-height: 35px; } table td { diff --git a/app/lib/apiClient.ts b/app/lib/apiClient.ts index 4d321e6..a8943a6 100644 --- a/app/lib/apiClient.ts +++ b/app/lib/apiClient.ts @@ -46,7 +46,9 @@ apiClient.interceptors.response.use( } if (status === 403) { + if (typeof window !== "undefined") { window.location.href = "/Impresiones"; + } } } return Promise.reject(error); diff --git a/app/lib/getStudent.ts b/app/lib/getStudent.ts index 001a23b..d2d501d 100644 --- a/app/lib/getStudent.ts +++ b/app/lib/getStudent.ts @@ -1,10 +1,11 @@ import axios from "axios"; import { envConfig } from "./config"; +import apiClient from "./apiClient"; export async function GetStudent(numAcount: number) { try { - const response = await axios.get( - `${envConfig.apiUrl}/student/${numAcount}` + const response = await apiClient.get( + `/student/${numAcount}` ); return response.data;