refactor(FE): Move error message above form actions in

InventoryAdjustmentForm
This commit is contained in:
rstubryan
2026-03-04 09:36:37 +07:00
parent fa86f488e1
commit d502ec707c
@@ -776,6 +776,16 @@ const InventoryAdjustmentForm = ({
>
<AlertErrorList formErrorList={formErrorList} onClose={close} />
</section>
{InventoryAdjustmentFormErrorMessage && (
<div role='alert' className='alert alert-error'>
<Icon
icon='material-symbols:error-outline'
width={24}
height={24}
/>
<span>{InventoryAdjustmentFormErrorMessage}</span>
</div>
)}
<div className='flex flex-col sm:flex-row sm:justify-end gap-2 mt-4'>
{type !== 'detail' && (
<>
@@ -799,16 +809,6 @@ const InventoryAdjustmentForm = ({
</>
)}
</div>
{InventoryAdjustmentFormErrorMessage && (
<div role='alert' className='alert alert-error'>
<Icon
icon='material-symbols:error-outline'
width={24}
height={24}
/>
<span>{InventoryAdjustmentFormErrorMessage}</span>
</div>
)}
</form>
</section>
</>