feat(FE): Enforce 2MB file limit and improve FileInput

This commit is contained in:
rstubryan
2026-01-06 20:38:51 +07:00
parent fa199e4879
commit 6f90bd604a
4 changed files with 28 additions and 1 deletions
+8
View File
@@ -33,6 +33,7 @@ const FileInput = ({
isError,
errorMessage,
disabled = false,
required = false,
onChange,
onBlur,
readOnly = false,
@@ -56,6 +57,13 @@ const FileInput = ({
)}
>
{label}
{required && (
<>
<span className='tooltip tooltip-error' data-tip='required'>
<span className='text-error'> *</span>
</span>
</>
)}
</label>
)}