refactor(FE): Move Error List Alert below form fields

This commit is contained in:
rstubryan
2026-01-29 11:29:19 +07:00
parent 1a800a1157
commit f28aeda74c
@@ -1274,13 +1274,6 @@ const UniformityTable = () => {
</Button>
</div>
{/* Error List Alert */}
{formErrorList.length > 0 && (
<div className='w-full px-4'>
<AlertErrorList formErrorList={formErrorList} onClose={close} />
</div>
)}
<div className='space-y-4 px-4'>
<div className='grid grid-cols-1 sm:grid-cols-2 sm:gap-4'>
<div>
@@ -1387,6 +1380,18 @@ const UniformityTable = () => {
</div>
</div>
<div className='w-full'>
{/* Error List Alert */}
{formErrorList.length > 0 && (
<div className='w-full px-4'>
<AlertErrorList
formErrorList={formErrorList}
onClose={close}
/>
</div>
)}
</div>
{/* Action Buttons */}
<div className='flex justify-between gap-4 py-4 mt-8 border-t border-gray-300 bg-gray-100'>
<Button