Skip to content

Commit d85e342

Browse files
committed
CCM-9118 Create previewLetterFooter object
1 parent 755756f commit d85e342

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

frontend/src/content/content.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -224,18 +224,20 @@ const previewEmailTemplate = {
224224
backLinkText: backToAllTemplates,
225225
};
226226

227+
const previewLetterFooter: Partial<Record<TemplateStatus, string[]>> = {
228+
WAITING_FOR_PROOF: [
229+
'It can take 5 to 10 working days to get a proof of your template.',
230+
'If you still have not received your proof after this time, contact NHS Notify.',
231+
],
232+
};
233+
227234
const previewLetterTemplate = {
228235
pageTitle: generatePageTitle('Preview letter template'),
229236
backLinkText: backToAllTemplates,
230237
submitText: 'Submit template',
231238
requestProofText: 'Request a proof',
232239
errorHeading: 'There is a problem',
233-
footer: {
234-
WAITING_FOR_PROOF: [
235-
'It can take 5 to 10 working days to get a proof of your template.',
236-
'If you still have not received your proof after this time, contact NHS Notify.',
237-
],
238-
} as Partial<Record<TemplateStatus, string[]>>,
240+
footer: previewLetterFooter,
239241
virusScanError: 'The file(s) you uploaded may contain a virus.',
240242
virusScanErrorAction:
241243
'Create a new letter template to upload your file(s) again or upload different file(s).',

0 commit comments

Comments
 (0)