Skip to content

Commit

Permalink
Link view profile button to patient profile page
Browse files Browse the repository at this point in the history
  • Loading branch information
samau3 committed Oct 22, 2024
1 parent f18079f commit 0b779df
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion client/src/pages/patients/Patients.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { useQuery } from '@tanstack/react-query';
import { useState } from 'react';
import { StatusCodes } from 'http-status-codes';
import { IconDotsVertical, IconSearch } from '@tabler/icons-react';
import { Link } from 'react-router-dom';

import classes from './Patients.module.css';
import LifelineAPI from './LifelineAPI';
Expand Down Expand Up @@ -122,7 +123,13 @@ export default function Patients() {
</ActionIcon>
</Menu.Target>
<Menu.Dropdown>
<Menu.Item>Edit</Menu.Item>
<Menu.Item
component={Link}
to={`/patients/${patient.id}`}
>
View/Edit
</Menu.Item>
<Menu.Item>Reprint QR Code</Menu.Item>
<Menu.Item color="red">Delete</Menu.Item>
</Menu.Dropdown>
</Menu>
Expand Down

0 comments on commit 0b779df

Please sign in to comment.