Skip to content
This repository was archived by the owner on Dec 4, 2025. It is now read-only.

Commit 4c180b3

Browse files
committed
Changed redirect to reauthenticate
1 parent 10b5e66 commit 4c180b3

5 files changed

Lines changed: 7 additions & 5 deletions

File tree

src/components/orangeInfoCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default function OrangeInfoCard (props: CardProps) {
1515
<div className="text-wrapper">
1616
<p>No patient found with ID: {patientId}</p>
1717
<button className="dipsPrimaryButton">
18-
<Link className="buttonLink" href={`/searchPatient`}>
18+
<Link className="buttonLink" href={`/`}>
1919
Return to search
2020
</Link>
2121
</button>

src/pages/api/patient.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { url } from "inspector";
12
import { NextApiRequest, NextApiResponse } from "next";
23

34
type ResponseData =
@@ -13,7 +14,8 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse<
1314
const serverUrl = req.body.client.state.serverUrl
1415
const URL = serverUrl + `/Patient/${patientId}`
1516
const accessToken = req.body.client.state.tokenResponse.access_token
16-
17+
console.log(URL);
18+
console.log(accessToken);
1719
//make request to serverUrl/patient/${id} with accesstoken
1820
const result = await fetch(URL,
1921
{

src/pages/appointments/[id].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ if (!patient) {
7070
<div className="text-wrapper">
7171
<p>No patient found with ID: {patientId}</p>
7272
<button className="dipsPrimaryButton">
73-
<Link className="buttonLink" href={`/searchPatient`}>
73+
<Link className="buttonLink" href={`/`}>
7474
Return to search
7575
</Link>
7676
</button>

src/pages/patient/[id].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ useEffect(() => {
184184
<div className="text-wrapper">
185185
<p>No patient found with ID: {patientId}</p>
186186
<button className="dipsPrimaryButton">
187-
<Link className="buttonLink" href={`/searchPatient`}>
187+
<Link className="buttonLink" href={`/`}>
188188
Return to search
189189
</Link>
190190
</button>

src/pages/patientView/[id].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const Patient: React.FC = () => {
104104
<div className="text-wrapper">
105105
<p>No patient found with ID: {patientId}</p>
106106
<button className="dipsPrimaryButton">
107-
<Link className="buttonLink" href={`/searchPatient`}>
107+
<Link className="buttonLink" href={`/`}>
108108
Return to search
109109
</Link>
110110
</button>

0 commit comments

Comments
 (0)