Skip to content

Commit 170961a

Browse files
CCM-13145: Fix linting
1 parent 7e788f8 commit 170961a

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

frontend/src/__tests__/components/molecules/NhsNotifyErrorSummary.test.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ test('Renders NhsNotifyErrorSummary correctly with errors', async () => {
2626
errorState={{
2727
fieldErrors: {
2828
'radios-id': ['Radio error 1', 'Radio error 2'],
29-
'select-id': ['Select error', ErrorCodes.MESSAGE_CONTAINS_INVALID_PERSONALISATION_FIELD_NAME],
29+
'select-id': [
30+
'Select error',
31+
ErrorCodes.MESSAGE_CONTAINS_INVALID_PERSONALISATION_FIELD_NAME,
32+
],
3033
},
3134
formErrors: ['Form error', 'Form error 2'],
3235
}}

frontend/src/components/molecules/NhsNotifyErrorSummary/NhsNotifyErrorSummary.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,17 @@ const UnlinkedErrorSummaryItem: FC<HTMLProps<HTMLSpanElement>> = (props) => (
1616
const errorComponents: Record<string, JSX.Element> = {
1717
[ErrorCodes.MESSAGE_CONTAINS_INVALID_PERSONALISATION_FIELD_NAME]: (
1818
<>
19-
<div className="nhsuk-u-margin-top-1 nhsuk-u-margin-bottom-4">
19+
<div className='nhsuk-u-margin-top-1 nhsuk-u-margin-bottom-4'>
2020
{templateMessageContainsInvalidPersonalisationErrorText}
2121
</div>
2222
<ul className='nhsuk-list nhsuk-list--bullet'>
2323
{INVALID_PERSONALISATION_FIELDS.map((item) => (
24-
<li key={`personalisation-field-${item.slice(0, 5)}`} className="nhsuk-u-margin-bottom-0">{item}</li>
24+
<li
25+
key={`personalisation-field-${item.slice(0, 5)}`}
26+
className='nhsuk-u-margin-bottom-0'
27+
>
28+
{item}
29+
</li>
2530
))}
2631
</ul>
2732
</>

0 commit comments

Comments
 (0)