Skip to content

Commit 648b81a

Browse files
committed
CCM-10893 Lint fix
1 parent 527399d commit 648b81a

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { render, screen, waitFor, within } from '@testing-library/react';
2+
import { render, screen, within } from '@testing-library/react';
33
import { mockDeep } from 'jest-mock-extended';
44
import NhsNotifyHeaderWithAccount from '@molecules/HeaderWithAccount/HeaderWithAccount';
55
import { type UseAuthenticator, useAuthenticator } from '@aws-amplify/ui-react';

frontend/src/components/molecules/ContentRenderer/ContentRenderer.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function ContentRenderer({ content, variables }: ContentRendererProps) {
2424
const key = block.testId ?? index;
2525

2626
switch (block.type) {
27-
case 'text':
27+
case 'text': {
2828
return (
2929
<MarkdownContent
3030
testId={block.testId}
@@ -33,7 +33,8 @@ export function ContentRenderer({ content, variables }: ContentRendererProps) {
3333
variables={variables}
3434
/>
3535
);
36-
case 'code':
36+
}
37+
case 'code': {
3738
return (
3839
<CodeExample
3940
data-testid={block.testId}
@@ -44,18 +45,21 @@ export function ContentRenderer({ content, variables }: ContentRendererProps) {
4445
{block.code}
4546
</CodeExample>
4647
);
47-
case 'list':
48+
}
49+
case 'list': {
4850
return (
4951
<ul data-testid={block.testId} key={key}>
5052
{block.items.map((item, itemId) => (
5153
<li key={itemId}>{item}</li>
5254
))}
5355
</ul>
5456
);
55-
default:
57+
}
58+
default: {
5659
console.error('Unsupported content block:', block);
5760

5861
throw new Error('Unsupported content block type');
62+
}
5963
}
6064
})}
6165
</>

0 commit comments

Comments
 (0)