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