@@ -14,6 +14,7 @@ import {
1414 viewSubmittedTemplatePages ,
1515} from 'nhs-notify-web-template-management-utils' ;
1616import { TemplateDto } from 'nhs-notify-backend-client' ;
17+ import style from './ManageTemplates.module.scss' ;
1718
1819const manageTemplatesContent = content . pages . manageTemplates ;
1920
@@ -93,29 +94,31 @@ export function ManageTemplates({
9394 { format ( `${ template . createdAt } ` , 'HH:mm' ) }
9495 </ Table . Cell >
9596 < Table . Cell >
96- { template . templateType === 'LETTER' ? null : (
97- < p className = 'nhsuk-u-margin-bottom-2' >
98- < Link
99- href = { `/copy-template/${ template . id } ` }
100- id = { `copy-template-link-${ index } ` }
101- >
102- < span className = 'nhsuk-u-visually-hidden' >
103- { template . name }
104- </ span >
105- { manageTemplatesContent . tableHeadings . action . copy }
106- </ Link >
107- </ p >
108- ) }
109- { template . templateStatus === 'NOT_YET_SUBMITTED' ? (
110- < p className = 'nhsuk-u-margin-bottom-2' >
111- < Link href = { `/delete-template/${ template . id } ` } >
112- < span className = 'nhsuk-u-visually-hidden' >
113- { template . name }
114- </ span >
115- { manageTemplatesContent . tableHeadings . action . delete }
116- </ Link >
117- </ p >
118- ) : null }
97+ < div className = { style . actionLinksWrapper } >
98+ { template . templateType === 'LETTER' ? null : (
99+ < p className = 'nhsuk-u-margin-bottom-2' >
100+ < Link
101+ href = { `/copy-template/${ template . id } ` }
102+ id = { `copy-template-link-${ index } ` }
103+ >
104+ < span className = 'nhsuk-u-visually-hidden' >
105+ { template . name }
106+ </ span >
107+ { manageTemplatesContent . tableHeadings . action . copy }
108+ </ Link >
109+ </ p >
110+ ) }
111+ { template . templateStatus === 'NOT_YET_SUBMITTED' ? (
112+ < p className = 'nhsuk-u-margin-bottom-2' >
113+ < Link href = { `/delete-template/${ template . id } ` } >
114+ < span className = 'nhsuk-u-visually-hidden' >
115+ { template . name }
116+ </ span >
117+ { manageTemplatesContent . tableHeadings . action . delete }
118+ </ Link >
119+ </ p >
120+ ) : null }
121+ </ div >
119122 </ Table . Cell >
120123 </ Table . Row >
121124 ) ) }
0 commit comments