File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed
__tests__/components/molecules/__snapshots__
components/molecules/ViewLetterTemplate Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -146,9 +146,6 @@ exports[`ViewLetterTemplate component matches submitted snapshot 1`] = `
146146 </div >
147147 </div >
148148 </div >
149- <p >
150- This template cannot be edited because it has been submitted.
151- </p >
152149 <p >
153150 If you want to change a submitted or live template, you must create a new template to replace it.
154151 </p >
Original file line number Diff line number Diff line change @@ -14,8 +14,7 @@ import { NHSNotifyMain } from '@atoms/NHSNotifyMain/NHSNotifyMain';
1414export function ViewLetterTemplate ( {
1515 initialState,
1616} : Readonly < PageComponentProps < LetterTemplate > > ) {
17- const { cannotEdit, createNewTemplate } =
18- content . components . viewSubmittedTemplate ;
17+ const { createNewTemplate } = content . components . viewSubmittedTemplate ;
1918
2019 return (
2120 < >
@@ -26,7 +25,6 @@ export function ViewLetterTemplate({
2625 < div className = 'nhsuk-grid-row' >
2726 < div className = 'nhsuk-grid-column-full' >
2827 < PreviewTemplateDetails . Letter template = { initialState } />
29- < p > { cannotEdit } </ p >
3028 < p > { createNewTemplate } </ p >
3129 < p >
3230 < Link href = '/manage-templates' > Back to all templates</ Link >
You can’t perform that action at this time.
0 commit comments