Skip to content
12 changes: 5 additions & 7 deletions app/src/components/generic/recordMenuCard/RecordMenuCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ function RecordMenuCard({
setStage={setStage}
/>
)}
<br />
<br />

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we CSS to create this space instead, margin-bottom 24px?

{downloadActions.length > 0 && (
<SideMenuSubSection
actionLinks={downloadActions}
Expand All @@ -61,13 +63,9 @@ const SideMenuSubSection = ({ actionLinks, heading, setStage }: SubSectionProps)
return (
<>
<h2 className="nhsuk-heading-m">{heading}</h2>
<ol>
{actionLinks.map((link) => (
<li key={link.key}>
<LinkItem link={link} setStage={setStage} />
</li>
))}
</ol>
{actionLinks.map((link) => (
<LinkItem key={link.key} link={link} setStage={setStage} />
))}
</>
);
};
Expand Down
49 changes: 23 additions & 26 deletions app/src/pages/patientSearchPage/PatientSearchPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useState } from 'react';
import { routes } from '../../types/generic/routes';
import { FieldValues, useForm } from 'react-hook-form';
import ErrorBox from '../../components/layout/errorBox/ErrorBox';
import { Button, Fieldset, Input } from 'nhsuk-react-components';
import { Button, Input } from 'nhsuk-react-components';
import SpinnerButton from '../../components/generic/spinnerButton/SpinnerButton';
import { InputRef } from '../../types/generic/inputRef';
import { useNavigate } from 'react-router-dom';
Expand Down Expand Up @@ -107,32 +107,29 @@ function PatientSearchPage() {
)}
</>
)}
<h1>{pageTitle}</h1>
<form onSubmit={handleSubmit(handleSearch, handleError)} noValidate>
<Fieldset>
<Fieldset.Legend headingLevel="h1" isPageHeading>
{pageTitle}
</Fieldset.Legend>
<Input
id="nhs-number-input"
data-testid="nhs-number-input"
label="Enter NHS number"
hint="A 10-digit number, for example, 485 777 3456"
type="text"
{...searchProps}
error={
submissionState !== SEARCH_STATES.SEARCHING && inputError
? inputError
: false
}
name="nhsNumber"
inputRef={nhsNumberRef as InputRef}
readOnly={
submissionState === SEARCH_STATES.SUCCEEDED ||
submissionState === SEARCH_STATES.SEARCHING
}
autoComplete="off"
/>
</Fieldset>
<Input
id="nhs-number-input"
data-testid="nhs-number-input"
label="Enter NHS number"
hint="A 10-digit number, for example, 485 777 3456"
type="text"
{...searchProps}
error={
submissionState !== SEARCH_STATES.SEARCHING && inputError
? inputError
: false
}
name="nhsNumber"
inputRef={nhsNumberRef as InputRef}
readOnly={
submissionState === SEARCH_STATES.SUCCEEDED ||
submissionState === SEARCH_STATES.SEARCHING
}
autoComplete="off"
/>

{submissionState === SEARCH_STATES.SEARCHING ? (
<SpinnerButton
id="patient-search-spinner"
Expand Down
Loading