diff --git a/src/Pages/AddTransactionPage/AddTransactionPage.tsx b/src/Pages/AddTransactionPage/AddTransactionPage.tsx index 0ea14c3..f9c69e1 100644 --- a/src/Pages/AddTransactionPage/AddTransactionPage.tsx +++ b/src/Pages/AddTransactionPage/AddTransactionPage.tsx @@ -33,10 +33,10 @@ export default function AddTransactionPage() { equipments: [] as number[], teacher: 0, subject: "", - remarks: " ", + remarks: "", transaction_status: "Pending Approval", - consumables: " ", - additional_members: " ", + consumables: "", + additional_members: "", borrower: 0, }); /* @@ -147,7 +147,7 @@ export default function AddTransactionPage() { transaction.equipments.includes(equipment.id) ) || [] } - onChange={(event, newValue) => { + onChange={(_event, newValue) => { SetTransaction({ ...transaction, equipments: newValue.map((item) => item.id), @@ -203,7 +203,6 @@ export default function AddTransactionPage() { SetTransaction({ ...transaction, subject: e.target.value }); setError(""); }} - label={"Subject"} value={transaction.subject} placeholder={"The subject requiring the equipments"} /> @@ -224,7 +223,6 @@ export default function AddTransactionPage() { SetTransaction({ ...transaction, remarks: e.target.value }); setError(""); }} - label={"Remarks"} value={transaction.remarks} placeholder={"Optionally add a brief description of the request"} /> @@ -245,7 +243,6 @@ export default function AddTransactionPage() { SetTransaction({ ...transaction, consumables: e.target.value }); setError(""); }} - label={"Consumables"} value={transaction.consumables} placeholder={"Write down any consumables here"} /> @@ -269,7 +266,6 @@ export default function AddTransactionPage() { }); setError(""); }} - label={"Additional Members"} value={transaction.additional_members} placeholder={ "Write down any additional members borrowing on behalf of this transaction"