From b95cc1851fd6dea745117fadf0cbb7eff2d401a1 Mon Sep 17 00:00:00 2001 From: Martyn Colmer <46242834+martyncolmer@users.noreply.github.com> Date: Thu, 29 Feb 2024 10:47:15 +0000 Subject: [PATCH] Revert "EAR 2291 update content for calculated summary questions" --- .../CalculatedSummaryPageEditor/index.js | 8 +---- .../page/Preview/CalculatedSummaryPreview.js | 35 +++---------------- 2 files changed, 6 insertions(+), 37 deletions(-) diff --git a/eq-author/src/App/page/Design/CalculatedSummaryPageEditor/index.js b/eq-author/src/App/page/Design/CalculatedSummaryPageEditor/index.js index 1b01e98ec8..da49dbf9e8 100644 --- a/eq-author/src/App/page/Design/CalculatedSummaryPageEditor/index.js +++ b/eq-author/src/App/page/Design/CalculatedSummaryPageEditor/index.js @@ -4,7 +4,6 @@ import { propType } from "graphql-anywhere"; import { get, flowRight, some } from "lodash"; import styled from "styled-components"; import gql from "graphql-tag"; -import DescribedText from "components/DescribedText"; import { richTextEditorErrors } from "constants/validationMessages"; import { colors } from "constants/theme"; @@ -203,11 +202,7 @@ export const CalculatedSummaryPageEditor = (props) => { - Calculated summary title - - } + label="Calculated summary title" placeholder="" value={page.title} onUpdate={onChangeUpdate} @@ -222,7 +217,6 @@ export const CalculatedSummaryPageEditor = (props) => { autoFocus={!page.title} pageType={page.pageType} /> - { section: page?.section, }); - const addConfirmationToTitle = () => { - if (page.title) { - const titleWithoutClosingParagraphTag = page.title.replace(/<\/p>$/, ""); - if (titleWithoutClosingParagraphTag.endsWith(".")) { - return `${page.title} Is this correct?`; - } else { - return `${page.title}. Is this correct?`; - } - } - }; - return ( { > - + + Please review your answers and confirm these are correct. + {page.summaryAnswers.length > 0 ? ( {page.summaryAnswers.map((answer) => ( @@ -174,7 +150,6 @@ const CalculatedSummaryPagePreview = ({ page }) => { No answers selected )} -