Skip to content

Commit 0c66c18

Browse files
committed
hide edit ref on view submitted letter
1 parent ddc1265 commit 0c66c18

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

frontend/src/__tests__/components/molecules/__snapshots__/ViewLetterTemplate.test.tsx.snap

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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>

frontend/src/components/molecules/ViewLetterTemplate/ViewLetterTemplate.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ import { NHSNotifyMain } from '@atoms/NHSNotifyMain/NHSNotifyMain';
1414
export 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>

0 commit comments

Comments
 (0)