mirror of
https://github.com/lemeow125/Borrowing-TrackerFrontend.git
synced 2024-11-16 22:09:29 +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[],
|
||||
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"
|
||||
|
|
Loading…
Reference in a new issue