Skip to content

Commit b71fb9b

Browse files
committed
CCM-10917 Lint fixes
1 parent aaadc89 commit b71fb9b

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

frontend/src/components/molecules/TemplateSubmitted/TemplateSubmitted.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
);

frontend/src/utils/markdownit/index.ts

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

0 commit comments

Comments
 (0)