File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
app/create-letter-template Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 1+ import { Metadata } from 'next' ;
12import { CreateLetterTemplate } from 'nhs-notify-web-template-management-utils' ;
23import { LetterTemplateForm } from '@forms/LetterTemplateForm/LetterTemplateForm' ;
34import { getSessionServer } from '@utils/amplify-utils' ;
45import { redirect , RedirectType } from 'next/navigation' ;
56import { fetchClient } from '@utils/server-features' ;
7+ import content from '@content/content' ;
8+
9+ const { pageTitle } = content . components . templateFormNhsApp ;
10+
11+ export async function generateMetadata ( ) : Promise < Metadata > {
12+ return {
13+ title : pageTitle ,
14+ } ;
15+ }
616
717const CreateLetterTemplatePage = async ( ) => {
818 const initialState : CreateLetterTemplate = {
Original file line number Diff line number Diff line change @@ -550,6 +550,7 @@ const templateFormNhsApp = {
550550const templateFormLetter = {
551551 backLinkText : 'Back to choose a template type' ,
552552 errorHeading : 'There is a problem' ,
553+ pageTitle : generatePageTitle ( 'Upload a letter template' ) ,
553554 pageHeading : 'Upload a letter template' ,
554555 templateNameLabelText : 'Template name' ,
555556 templateNameHintText : 'This will not be visible to recipients.' ,
You can’t perform that action at this time.
0 commit comments