mirror of
https://github.com/lemeow125/Borrowing-TrackerFrontend.git
synced 2024-11-17 06:19:27 +08:00
Remove redundant labels
This commit is contained in:
parent
48d0e8f133
commit
7a5beed3db
1 changed files with 4 additions and 8 deletions
|
@ -33,10 +33,10 @@ export default function AddTransactionPage() {
|
||||||
equipments: [] as number[],
|
equipments: [] as number[],
|
||||||
teacher: 0,
|
teacher: 0,
|
||||||
subject: "",
|
subject: "",
|
||||||
remarks: " ",
|
remarks: "",
|
||||||
transaction_status: "Pending Approval",
|
transaction_status: "Pending Approval",
|
||||||
consumables: " ",
|
consumables: "",
|
||||||
additional_members: " ",
|
additional_members: "",
|
||||||
borrower: 0,
|
borrower: 0,
|
||||||
});
|
});
|
||||||
/*
|
/*
|
||||||
|
@ -147,7 +147,7 @@ export default function AddTransactionPage() {
|
||||||
transaction.equipments.includes(equipment.id)
|
transaction.equipments.includes(equipment.id)
|
||||||
) || []
|
) || []
|
||||||
}
|
}
|
||||||
onChange={(event, newValue) => {
|
onChange={(_event, newValue) => {
|
||||||
SetTransaction({
|
SetTransaction({
|
||||||
...transaction,
|
...transaction,
|
||||||
equipments: newValue.map((item) => item.id),
|
equipments: newValue.map((item) => item.id),
|
||||||
|
@ -203,7 +203,6 @@ export default function AddTransactionPage() {
|
||||||
SetTransaction({ ...transaction, subject: e.target.value });
|
SetTransaction({ ...transaction, subject: e.target.value });
|
||||||
setError("");
|
setError("");
|
||||||
}}
|
}}
|
||||||
label={"Subject"}
|
|
||||||
value={transaction.subject}
|
value={transaction.subject}
|
||||||
placeholder={"The subject requiring the equipments"}
|
placeholder={"The subject requiring the equipments"}
|
||||||
/>
|
/>
|
||||||
|
@ -224,7 +223,6 @@ export default function AddTransactionPage() {
|
||||||
SetTransaction({ ...transaction, remarks: e.target.value });
|
SetTransaction({ ...transaction, remarks: e.target.value });
|
||||||
setError("");
|
setError("");
|
||||||
}}
|
}}
|
||||||
label={"Remarks"}
|
|
||||||
value={transaction.remarks}
|
value={transaction.remarks}
|
||||||
placeholder={"Optionally add a brief description of the request"}
|
placeholder={"Optionally add a brief description of the request"}
|
||||||
/>
|
/>
|
||||||
|
@ -245,7 +243,6 @@ export default function AddTransactionPage() {
|
||||||
SetTransaction({ ...transaction, consumables: e.target.value });
|
SetTransaction({ ...transaction, consumables: e.target.value });
|
||||||
setError("");
|
setError("");
|
||||||
}}
|
}}
|
||||||
label={"Consumables"}
|
|
||||||
value={transaction.consumables}
|
value={transaction.consumables}
|
||||||
placeholder={"Write down any consumables here"}
|
placeholder={"Write down any consumables here"}
|
||||||
/>
|
/>
|
||||||
|
@ -269,7 +266,6 @@ export default function AddTransactionPage() {
|
||||||
});
|
});
|
||||||
setError("");
|
setError("");
|
||||||
}}
|
}}
|
||||||
label={"Additional Members"}
|
|
||||||
value={transaction.additional_members}
|
value={transaction.additional_members}
|
||||||
placeholder={
|
placeholder={
|
||||||
"Write down any additional members borrowing on behalf of this transaction"
|
"Write down any additional members borrowing on behalf of this transaction"
|
||||||
|
|
Loading…
Reference in a new issue