From 324d7d53a06ee8d3685cd3185bd33b52efc37f67 Mon Sep 17 00:00:00 2001 From: Cara Barter Date: Wed, 22 Nov 2023 14:44:41 -0800 Subject: [PATCH] FW-5190-create-custom-page-subtitle-length (#203) * changed character limit to 225 for subtitle * changed validator from ValidationHelpers to PageForm --- src/components/PageCrud/PageForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/PageCrud/PageForm.js b/src/components/PageCrud/PageForm.js index 50c0b7a6..893edd37 100644 --- a/src/components/PageCrud/PageForm.js +++ b/src/components/PageCrud/PageForm.js @@ -12,7 +12,7 @@ import { PUBLIC } from 'common/constants/visibility' function PageForm({ cancelHandler, dataToEdit, submitHandler, deleteHandler }) { const validator = yup.object().shape({ title: definitions.title().required('A title is required'), - subtitle: definitions.paragraph(), + subtitle: definitions.paragraph({ charCount: 225 }), slug: definitions.latinOnly({ message: 'Please enter a URL' }), })