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

Commit

Permalink
#28 Fixed side view
Browse files Browse the repository at this point in the history
  • Loading branch information
MilitsaB committed Apr 6, 2022
1 parent 8accc99 commit b83270e
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/components/dashboard/PatientView/PatientView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ function PatientView() {
</ListItemIcon>
<ListItemText data-testid="TestResults" primary="Test Results" onClick={handleTestROpen} />
</ListItem>
<ListItem button disabled={!areAssigned} key="Results" data-testid="SymptomsUpdate2">
{!areAssigned && (
<ListItem button key="Results" data-testid="SymptomsUpdate2">
<ListItemIcon>
<ContentPasteIcon />
</ListItemIcon>
Expand All @@ -129,8 +130,15 @@ function PatientView() {
onClick={() => { navigate('/symptomsUpdate'); }}
/>
</ListItem>

<ListItem button disabled={disableBook && areAssigned} key="Booking">
)}
<ListItem button key="Settings" data-testid="MainSettings">
<ListItemIcon>
<SettingsIcon />
</ListItemIcon>
<ListItemText primary="Main Settings" onClick={() => { setContentId(2); }} />
</ListItem>
{!appointment && !disableBook && areAssigned && (
<ListItem button key="Booking">
<ListItemIcon>
<EventIcon />
</ListItemIcon>
Expand All @@ -139,12 +147,7 @@ function PatientView() {
onClick={() => setBookingOpen(true)}
/>
</ListItem>
<ListItem button key="Settings" data-testid="MainSettings">
<ListItemIcon>
<SettingsIcon />
</ListItemIcon>
<ListItemText primary="Main Settings" onClick={() => { setContentId(2); }} />
</ListItem>
)}
{appointment && (
<ListItem button key="Appointments">
<ListItemIcon>
Expand Down

0 comments on commit b83270e

Please sign in to comment.