Add validation mode to form and adjust comment input margin
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user