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 )} -