Extended comment max characters

This commit is contained in:
Rykkel
2024-08-13 13:16:57 +08:00
parent 82a42eb41d
commit 3772ca03eb
3 changed files with 4 additions and 13 deletions

View File

@@ -13,7 +13,7 @@ const validationSchema = Yup.object({
content: Yup.string()
.trim()
.min(3, "Content must be at least 3 characters")
.max(500, "Content must be at most 500 characters")
.max(3000, "Content must be at most 3000 characters")
});
export default function CommentInputModule() {

View File

@@ -25,7 +25,7 @@ const validationSchema = Yup.object({
content: Yup.string()
.trim()
.min(3, "Content must be at least 3 characters")
.max(500, "Content must be at most 500 characters")
.max(3000, "Content must be at most 3000 characters")
.required("Content is required"),
});