new style and fixed request

This commit is contained in:
2025-09-22 12:15:32 -04:00
parent 079ba15099
commit 1e081dfe79
10 changed files with 67 additions and 35 deletions
+4 -4
View File
@@ -7,10 +7,10 @@ import Cookies from "js-cookie";
import "./Receipt.css";
interface ReceiptsProps {
numAccount: number | null;
numAcount: number | null;
}
function Receipt({ numAccount }: ReceiptsProps) {
function Receipt({ numAcount }: ReceiptsProps) {
const [folio, setFolio] = useState("");
const [amount, setAmount] = useState("");
const [date, setDate] = useState("");
@@ -29,7 +29,7 @@ function Receipt({ numAccount }: ReceiptsProps) {
//restrict this month//
const handleSaveReceipt = () => {
if (!numAccount) {
if (!numAcount) {
setError("Error busca denuevo al estudiante");
return;
}
@@ -50,7 +50,7 @@ function Receipt({ numAccount }: ReceiptsProps) {
}
PostReceipt({
id_cuenta: numAccount,
id_cuenta: numAcount,
folio_recibo: folio,
monto: Number(amount),
fecha_recibo: date,