Skip to content

Commit

Permalink
pr update: eslint prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-start-nhs committed Dec 16, 2024
1 parent 67537f9 commit 96be6a9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The National Document Repository user interface (UI) has been developed with Rea

### 1. Set Env Variables

In the app/ directory create a `.env` file by duplicating [.env.template](.env.template) and adding any missing values. This file is sourced to
In the app/ directory create a `.env` file by duplicating the [.env.template](.env.template) and adding any missing values. This file is sourced to
your shell env so make sure it doesn't have any extra whitespace, comments etc.
The `local` environment variable will allow your local app to bypass auth and mock most lambda requests.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ function LloydGeorgeViewRecordStage({
Exit full screen
</BackLink>
) : (
<BackButton toLocation={routes.VERIFY_PATIENT} backLinkText="Go back to Patient details" />
<BackButton
toLocation={routes.VERIFY_PATIENT}
backLinkText="Go back to Patient details"
/>
)}
{!fullScreen && userIsGpAdminNonBSOL && (
<div className="lloydgeorge_record-stage_gp-admin-non-bsol">
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/generic/backButton/BackButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const BackButton = ({ toLocation, backLinkText = 'Go back' }: BackButtonProps) =
const onBack = (e: MouseEvent<HTMLAnchorElement>) => {
e.preventDefault();

if (toLocation) navigate(toLocation);
if (toLocation) navigate(toLocation);
else navigate(-1);
};

Expand Down
7 changes: 3 additions & 4 deletions app/src/pages/patientResultPage/PatientResultPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import ErrorBox from '../../components/layout/errorBox/ErrorBox';
import { REPOSITORY_ROLE } from '../../types/generic/authRole';
import useRole from '../../helpers/hooks/useRole';
import usePatient from '../../helpers/hooks/usePatient';
import ServiceDeskLink from '../../components/generic/serviceDeskLink/ServiceDeskLink';
import useTitle from '../../helpers/hooks/useTitle';
import PatientSummary from '../../components/generic/patientSummary/PatientSummary';

Expand Down Expand Up @@ -80,13 +79,13 @@ function PatientResultPage() {
{isGp && (
<>
<p id="gp-message">
This page displays the current data recorded in the Patient Demographic Service
for this patient.
This page displays the current data recorded in the Patient Demographic
Service for this patient.
</p>
</>
)}
<Button type="submit" id="verify-submit" className="nhsuk-u-margin-top-6">
Confirm patient details and continue
Confirm patient details and continue
</Button>
</form>
</div>
Expand Down

0 comments on commit 96be6a9

Please sign in to comment.