chore: adjust DateInput styling

This commit is contained in:
ValdiANS
2026-01-24 11:19:41 +07:00
parent ab390ab461
commit 2d81b0dfba
+4 -9
View File
@@ -204,17 +204,12 @@ const DateInput = ({
const finalErrorMessage = internalError || externalErrorMessage;
return (
<div
className={cn(
'w-full flex flex-col gap-2 text-start',
className?.wrapper
)}
>
<div className={cn('w-full flex flex-col text-start', className?.wrapper)}>
{label && (
<label
htmlFor={name}
className={cn(
'w-full text-sm font-normal leading-5',
'w-full py-2 text-xs font-semibold leading-5',
{ 'text-error': finalIsError },
className?.label
)}
@@ -272,10 +267,10 @@ const DateInput = ({
</div>
{!finalIsError && bottomLabel && (
<p className='w-full text-sm opacity-60'>{bottomLabel}</p>
<p className='w-full mt-1.5 text-xs opacity-60'>{bottomLabel}</p>
)}
{finalIsError && finalErrorMessage && (
<p className='w-full text-sm text-error'>{finalErrorMessage}</p>
<p className='w-full mt-1.5 text-xs text-error'>{finalErrorMessage}</p>
)}
<Modal