From b8c0a869ee6dc96e7e5a1458d8578271c001270d Mon Sep 17 00:00:00 2001 From: Vitalii Kiiko Date: Thu, 27 Mar 2025 11:33:52 +0100 Subject: [PATCH] - added translation=no wrapper for all Editor components; --- src/components/FormFieldRepeaterFaq/index.js | 50 +++++++++++-------- .../components/ElementSetting/index.js | 4 +- .../DomandaEditInstructorManager/index.js | 22 ++++---- src/pages/DomandaEditPreInstructor/index.js | 20 ++++---- .../SoccorsoAddInstructorManager/index.js | 6 +-- src/pages/SoccorsoAddPreInstructor/index.js | 2 +- src/pages/SoccorsoEditBeneficiario/index.js | 2 +- .../SoccorsoEditInstructorManager/index.js | 4 +- src/pages/SoccorsoEditPreInstructor/index.js | 4 +- 9 files changed, 62 insertions(+), 52 deletions(-) diff --git a/src/components/FormFieldRepeaterFaq/index.js b/src/components/FormFieldRepeaterFaq/index.js index 5ba60a3..f2223f5 100644 --- a/src/components/FormFieldRepeaterFaq/index.js +++ b/src/components/FormFieldRepeaterFaq/index.js @@ -145,7 +145,7 @@ const FormFieldRepeaterFaq = ({ const header = renderHeader(); const faqOptionTemplate = (option) => { - return DOMPurify.sanitize(option.title, {ALLOWED_TAGS: ['#text']}); + return DOMPurify.sanitize(option.title, { ALLOWED_TAGS: ['#text'] }); } useEffect(() => { @@ -236,33 +236,39 @@ const FormFieldRepeaterFaq = ({ onHide={hideEditDialog}>
- onChangeEditItem(e.htmlValue, 'title')} - style={{ height: 80 * 1 }} - /> +
+ onChangeEditItem(e.htmlValue, 'title')} + style={{ height: 80 * 1 }} + /> +
- onChangeEditItem(e.htmlValue, 'value')} - style={{ height: 80 * 1 }} - /> +
+ onChangeEditItem(e.htmlValue, 'value')} + style={{ height: 80 * 1 }} + /> +
- onChangeEditItem(e.htmlValue, 'response')} - style={{ height: 80 * 2 }} - /> +
+ onChangeEditItem(e.htmlValue, 'response')} + style={{ height: 80 * 2 }} + /> +
diff --git a/src/pages/BandoFormsEdit/components/BuilderElementSettings/components/ElementSetting/index.js b/src/pages/BandoFormsEdit/components/BuilderElementSettings/components/ElementSetting/index.js index 051e7c4..b1d0841 100644 --- a/src/pages/BandoFormsEdit/components/BuilderElementSettings/components/ElementSetting/index.js +++ b/src/pages/BandoFormsEdit/components/BuilderElementSettings/components/ElementSetting/index.js @@ -89,12 +89,12 @@ const ElementSetting = ({ setting, changeFn, updateDataFn, bandoStatus }) => { display="chip" placeholder={__('Scegli', 'gepafin')}/> } else if (setting.name === 'text') { - return changeFn(e.htmlValue, setting.name)} style={{ height: 80 * 4 }} - /> + />
} else if (setting.name === 'step') { return { ?