diff --git a/src/components/AgregarEquipo.tsx b/src/components/AgregarEquipo.tsx index a0972b2..a6ca8f7 100644 --- a/src/components/AgregarEquipo.tsx +++ b/src/components/AgregarEquipo.tsx @@ -240,7 +240,7 @@ export default function Page() { .map((a) => a.adscripcion); setSuggestions((prev) => ({ ...prev, - adscripcion: matches.slice(0, 5), + adscripcion: matches.slice(0, 20), })); return; } diff --git a/src/components/Dowload/Reporte.tsx b/src/components/Dowload/Reporte.tsx index 6b542cb..f55a695 100644 --- a/src/components/Dowload/Reporte.tsx +++ b/src/components/Dowload/Reporte.tsx @@ -10,7 +10,7 @@ export default function DownloadReporteXLSX() { try { const response = await fetch( - "https://venus.acatlan.unam.mx/censo_test/equipos/reporteXLSX",{headers} + `${process.env.NEXT_PUBLIC_API_URL}/equipos/reporteXLSX`,{headers} ); if (!response.ok) { diff --git a/src/components/Editar.tsx b/src/components/Editar.tsx index 8ca3fef..60d620a 100644 --- a/src/components/Editar.tsx +++ b/src/components/Editar.tsx @@ -436,7 +436,7 @@ export default function Editar() { setSuggestions((prev) => ({ ...prev, - adscripcion: matches.slice(0, 5), + adscripcion: matches.slice(0, 20), })); return; } diff --git a/src/components/Equipo_Computo/Pregunta2.tsx b/src/components/Equipo_Computo/Pregunta2.tsx index 6d9adbd..28dd513 100644 --- a/src/components/Equipo_Computo/Pregunta2.tsx +++ b/src/components/Equipo_Computo/Pregunta2.tsx @@ -62,7 +62,7 @@ export default function Pregunta2() { const token = Cookies.get("token"); const headers = {Authorization: `Bearer ${token}`}; axios - .get("https://venus.acatlan.unam.mx/censo_test/equipos/reporte/tipoEquipos_sistemasOperativos",{headers}) + .get(`${process.env.NEXT_PUBLIC_API_URL}/equipos/reporte/tipoEquipos_sistemasOperativos`,{headers}) .then((res) => { const json = res.data; diff --git a/src/components/Equipo_Computo/Pregunta3.tsx b/src/components/Equipo_Computo/Pregunta3.tsx index 6446e15..fee195d 100644 --- a/src/components/Equipo_Computo/Pregunta3.tsx +++ b/src/components/Equipo_Computo/Pregunta3.tsx @@ -112,7 +112,7 @@ export default function Pregunta3_2() { const headers = { Authorization: `Bearer ${token}` }; axios - .get("https://venus.acatlan.unam.mx/censo_test/equipos/reporte/tipoEquipos_procesador", { headers }) + .get(`${process.env.NEXT_PUBLIC_API_URL}/equipos/reporte/tipoEquipos_procesador`, { headers }) .then((res) => { const json = res.data; // array de 5 arreglos diff --git a/src/components/Equipo_Computo/Pregunta9.tsx b/src/components/Equipo_Computo/Pregunta9.tsx index f7e07cb..c2a5835 100644 --- a/src/components/Equipo_Computo/Pregunta9.tsx +++ b/src/components/Equipo_Computo/Pregunta9.tsx @@ -79,7 +79,7 @@ export default function Pregunta9() { } axios - .get("https://venus.acatlan.unam.mx/censo_test/equipos/reporte/tipoEquipos_antiguedad", { + .get(`${process.env.NEXT_PUBLIC_API_URL}/equipos/reporte/tipoEquipos_antiguedad`, { headers: { Authorization: `Bearer ${token}` }, }) .then((res) => { diff --git a/src/components/Equipo_Computo/pregunta10.tsx b/src/components/Equipo_Computo/pregunta10.tsx index f599778..bb5140b 100644 --- a/src/components/Equipo_Computo/pregunta10.tsx +++ b/src/components/Equipo_Computo/pregunta10.tsx @@ -24,7 +24,7 @@ export default function Pregunta10() { } axios - .get("https://venus.acatlan.unam.mx/censo_test/equipos/reporte/garantia", { + .get(`${process.env.NEXT_PUBLIC_API_URL}/equipos/reporte/garantia`, { headers: { Authorization: `Bearer ${token}` }, }) .then((res) => {