fix: add unique IDs and required labels to payroll adjustment inputs

This commit is contained in:
Yoga Pangestu 2026-04-18 16:12:26 +07:00
parent 69131d8f8f
commit d06d32f3f8

View File

@ -136,9 +136,9 @@ export function PayrollFormModal({ isOpen, onClose, payroll }: PayrollFormModalP
</div> </div>
<div> <div>
<Label className="text-[10px] uppercase mb-1">Jumlah</Label> <Label className="text-[10px] uppercase mb-1" htmlFor={`amount-${index}`} required>Jumlah</Label>
<NumericFormat <NumericFormat
id="amount" id={`amount-${index}`}
customInput={Input} customInput={Input}
thousandSeparator="." thousandSeparator="."
decimalSeparator="," decimalSeparator=","
@ -154,8 +154,9 @@ export function PayrollFormModal({ isOpen, onClose, payroll }: PayrollFormModalP
</div> </div>
<div> <div>
<Label className="text-[10px] uppercase mb-1">Keterangan</Label> <Label className="text-[10px] uppercase mb-1" htmlFor={`description-${index}`} required>Keterangan</Label>
<Input <Input
id={`description-${index}`}
value={adj.description} value={adj.description}
onChange={e => onChange={e =>
updateAdjustment(index, 'description', e.target.value) updateAdjustment(index, 'description', e.target.value)