File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
components/molecules/TemplateSubmitted Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -61,12 +61,12 @@ export const TemplateSubmitted = ({
6161 < h3 className = 'nhsuk-u-margin-top-6 nhsuk-u-margin-bottom-3' >
6262 { heading }
6363 </ h3 >
64- { text . map ( ( content , i ) => {
64+ { text . map ( ( textContent , i ) => {
6565 return (
6666 < p
6767 key = { `do-next-${ index } -${ i } ` }
6868 dangerouslySetInnerHTML = { {
69- __html : withEmbeddedLink ( content ) ,
69+ __html : withEmbeddedLink ( textContent ) ,
7070 } }
7171 />
7272 ) ;
Original file line number Diff line number Diff line change @@ -51,7 +51,10 @@ export function renderEmailMarkdown(
5151 return markdown . render ( value ) ;
5252}
5353
54- export function withEmbeddedLink ( content : string , markdown = new MarkdownItWrapper ( ) ) {
55- markdown . enableLineBreak ( ) . enable ( 'link' )
56- return markdown . renderInline ( content )
54+ export function withEmbeddedLink (
55+ content : string ,
56+ markdown = new MarkdownItWrapper ( )
57+ ) {
58+ markdown . enableLineBreak ( ) . enable ( 'link' ) ;
59+ return markdown . renderInline ( content ) ;
5760}
You can’t perform that action at this time.
0 commit comments