chore: custom month select modal validation added (#4027)

This commit is contained in:
Anmol Singh Bhatia 2024-03-21 20:47:22 +05:30 committed by GitHub
parent 56d4e25431
commit 991b8e7703
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -98,6 +98,8 @@ export const SelectMonthModal: React.FC<Props> = ({ type, initialValues, isOpen,
hasError={Boolean(errors.close_in)}
placeholder="Enter Months"
className="w-full border-custom-border-200"
min={1}
max={12}
/>
<span className="absolute right-8 top-2.5 text-sm text-custom-text-200">Months</span>
</div>
@ -130,6 +132,8 @@ export const SelectMonthModal: React.FC<Props> = ({ type, initialValues, isOpen,
hasError={Boolean(errors.archive_in)}
placeholder="Enter Months"
className="w-full border-custom-border-200"
min={1}
max={12}
/>
<span className="absolute right-8 top-2.5 text-sm text-custom-text-200">Months</span>
</div>