Skip to content

Commit eb4fa49

Browse files
CCM-13415: Fix CI
1 parent 6ec0025 commit eb4fa49

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

frontend/src/components/atoms/NHSNotifyTextArea/NHSNotifyTextArea.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ import { Label, ErrorMessage } from 'nhsuk-react-components';
55
export type FormElementProps = {
66
id: string;
77
textAreaProps: HTMLProps<HTMLTextAreaElement>;
8-
label?: string;
8+
label: string;
99
error?: string | JSX.Element;
10-
formGroupProps?: HTMLProps<HTMLDivElement>;
1110
};
1211

1312
const NHSNotifyTextArea = (props: FormElementProps): JSX.Element => {
@@ -21,11 +20,9 @@ const NHSNotifyTextArea = (props: FormElementProps): JSX.Element => {
2120
'nhsuk-form-group--error': error,
2221
})}
2322
>
24-
{label ? (
25-
<Label id={labelID} htmlFor={id} size='s'>
26-
{label}
27-
</Label>
28-
) : null}
23+
<Label id={labelID} htmlFor={id} size='s'>
24+
{label}
25+
</Label>
2926
{error ? <ErrorMessage id={errorID}>{error}</ErrorMessage> : null}
3027
<textarea
3128
className={classNames('nhsuk-textarea', {

frontend/src/components/molecules/NhsNotifyErrorItem/NHSNotifyErrorItem.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ const errorComponents: Record<string, JSX.Element> = {
2323
),
2424
};
2525

26-
export const renderErrorItem = (error: string) => errorComponents[error] || error;
26+
export const renderErrorItem = (error: string) =>
27+
errorComponents[error] || error;

0 commit comments

Comments
 (0)