Add validation mode to form and adjust comment input margin

This commit is contained in:
Swapnil Bendal
2025-01-20 18:07:09 +05:30
parent f31b67f676
commit abe9b14436

View File

@@ -70,6 +70,7 @@ const DeletionRequestApprove = ({
formState: { errors },
} = useForm({
resolver: yupResolver(conformModalSchema),
mode: "all",
});
useEffect(() => {
@@ -176,6 +177,7 @@ const DeletionRequestApprove = ({
size="sm"
placeholder={"Enter your comment...."}
resize={"none"}
mb={2}
/>
{errors.adminComment && (
<Text fontSize="xs" color="red">