se hicieron cambios en como se muestra la información

This commit is contained in:
evenegas
2025-07-03 11:16:43 -06:00
parent e99376ebdd
commit de19f41436
9 changed files with 74 additions and 25 deletions
+3 -1
View File
@@ -1,6 +1,8 @@
"use client";
import React, { useState } from "react";
import Button from "./button";
const apiUrl = process.env.NEXT_PUBLIC_API_URL;
const CargaArchivo: React.FC = () => {
const [archivo, setArchivo] = useState<File | null>(null);
@@ -37,7 +39,7 @@ const CargaArchivo: React.FC = () => {
setLoading(true); // ← empieza a subir
try {
const res = await fetch("https://venus.acatlan.unam.mx/servicios_pcpuma_test/excel/load", {
const res = await fetch(`${apiUrl}/excel/load`, {
method: "POST",
headers: {
Authorization: `Bearer ${token}`,
+2 -1
View File
@@ -1,6 +1,7 @@
"use client";
import React, { useState } from "react";
import Button from "./button";
const apiUrl = process.env.NEXT_PUBLIC_API_URL;
type FuenteCardProps = {
nombre: string;
@@ -29,7 +30,7 @@ const FuenteCard: React.FC<FuenteCardProps> = ({
try {
setLoading(true); // ← activa estado de carga
const res = await fetch(
`https://venus.acatlan.unam.mx/servicios_pcpuma_test/excel/activar-servicios/${id_mov}`,
`${apiUrl}/excel/activar-servicios/${id_mov}`,
{
method: "POST",
headers: {