diff --git a/eq-author/src/App/Submission/Preview/SubmissionPreview/index.js b/eq-author/src/App/Submission/Preview/SubmissionPreview/index.js index 38ceb5e6e0..7156de276a 100644 --- a/eq-author/src/App/Submission/Preview/SubmissionPreview/index.js +++ b/eq-author/src/App/Submission/Preview/SubmissionPreview/index.js @@ -3,15 +3,12 @@ import PropTypes from "prop-types"; import styled from "styled-components"; import { colors } from "constants/theme.js"; -import IconText from "components/IconText"; import PageTitle from "components/preview/elements/PageTitle"; import { Field, Label } from "components/Forms"; import Panel from "components-themed/panels"; import Feedback from "components-themed/Feedback"; import Error from "components/preview/Error"; -import { ReactComponent as WarningIcon } from "assets/icon-warning-round.svg"; - const Wrapper = styled.div` padding: 2em; font-size: 18px; @@ -19,7 +16,8 @@ const Wrapper = styled.div` const Section = styled.div` &:not(:first-child) { - margin-top: 1em; + margin-top: ${(props) => + props.marginTop ? `${props.marginTop}em` : `0.5em`}; } `; @@ -33,16 +31,8 @@ const TitleWrapper = styled.div` margin-top: -0.35em; `; -const WarningPanel = styled(IconText)` - svg { - height: 2em; - width: 2em; - } -`; - const WarningPanelText = styled.div` font-weight: bold; - margin-left: 0.5em; `; const PanelSection = styled.div` @@ -89,6 +79,8 @@ const BlueUnderlined = styled.span` font-weight: ${(props) => props.bold && `bold`}; `; +const Text = styled.p``; + const SubmissionEditor = ({ submission, questionnaireTitle }) => { const { furtherContent, viewPrintAnswers, feedback } = submission; @@ -144,22 +136,24 @@ const SubmissionEditor = ({ submission, questionnaireTitle }) => { title={getCopyOfAnswers} missingText={missingTitleText} /> - You can  - save or print your answers -  for your records. + We may contact you to query your answers. + + If you need a copy for your records,  + save or print your answers. +
- + {answersAvailableToView} - + {feedback && }
)} {feedback && ( -
+
{commentsImprovements}