From c19f576bf5fe9170e6bcacf161712553ba554bc4 Mon Sep 17 00:00:00 2001 From: Luke Towell Date: Thu, 21 Nov 2024 14:41:50 +0000 Subject: [PATCH 01/54] CDD-2300: Add in required attribute and conditional formatting --- src/app/components/cms/Feedback/Feedback.tsx | 13 +++++++++---- .../handlers/cms/pages/fixtures/page/feedback.ts | 6 +++--- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/app/components/cms/Feedback/Feedback.tsx b/src/app/components/cms/Feedback/Feedback.tsx index 619fcaa8..07dd4730 100644 --- a/src/app/components/cms/Feedback/Feedback.tsx +++ b/src/app/components/cms/Feedback/Feedback.tsx @@ -64,8 +64,7 @@ export const renderFormFields = ({ label, field_type: fieldType, help_text: helpText, - // TODO: Required validation added in ticket CDD-2300 - // required, + required, choices, // default_value: defaultValue, }: z.infer) => { @@ -79,7 +78,7 @@ export const renderFormFields = ({ {fieldType === 'singleline' && (

-

@@ -91,7 +90,7 @@ export const renderFormFields = ({ )} {fieldType === 'multiline' && ( -
+

)} {fieldType === 'multiline' && ( -
+