Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Commit

Permalink
Merge branch '#28-Patient-Upcoming-Appointments' of https://github.co…
Browse files Browse the repository at this point in the history
…m/KrisTheCanadian/soen-390 into #28-Patient-Upcoming-Appointments
  • Loading branch information
MilitsaB committed Apr 6, 2022
2 parents b83270e + 0a0e1fa commit de7e3c0
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/components/dashboard/PatientView/PatientView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,28 @@ function PatientView() {
/>
</ListItem>
)}
{user?.canBookAppointment && (
<ListItem button key="Booking">
<ListItemIcon>
<EventIcon />
</ListItemIcon>
<ListItemText
primary="Book Appointment"
onClick={() => setBookingOpen(true)}
/>
</ListItem>
)}
{appointment && (
<ListItem button key="Appointments">
<ListItemIcon>
<EventIcon />
</ListItemIcon>
<ListItemText
primary="Next Appointment"
onClick={() => setAppointmentsViewOpen(true)}
/>
</ListItem>
)}
</List>
<Divider />
</SideBar>
Expand Down

0 comments on commit de7e3c0

Please sign in to comment.