Skip to content

Commit

Permalink
Rename Patients.jsx to PatientDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
samau3 committed Sep 20, 2024
1 parent be154db commit 8130180
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import PasswordReset from './pages/auth/password-reset/passwordReset';
import AuthLayout from './stories/AuthLayout/AuthLayout';
import Verify from './pages/verify/verify';
import PatientRegistration from './pages/patients/register/PatientRegistration';
import Patient from './pages/patients/Patient';
import PatientDetails from './pages/patients/patient-details/PatientDetails';

const RedirectProps = {
isLoading: PropTypes.bool.isRequired,
Expand Down Expand Up @@ -140,7 +140,7 @@ function App() {
path="/admin/patients/generate"
element={<AdminPatientsGenerate />}
/>
<Route path="/patients/:patientId" element={<Patient />} />
<Route path="/patients/:patientId" element={<PatientDetails />} />
<Route
path="/patients/register/:patientId"
element={
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useParams, useNavigate } from 'react-router-dom';
import { useQuery } from '@tanstack/react-query';
import LifelineAPI from './LifelineAPI.js';
import LifelineAPI from '../LifelineAPI.js';
import { StatusCodes } from 'http-status-codes';
import { useEffect } from 'react';
import { Loader } from '@mantine/core';
Expand All @@ -9,7 +9,7 @@ import { Loader } from '@mantine/core';
*
* Patient page component
*/
export default function Patient() {
export default function PatientDetails() {
const { patientId } = useParams();
const navigate = useNavigate();

Expand Down

0 comments on commit 8130180

Please sign in to comment.