Skip to content

Commit

Permalink
Merge pull request #799 from BIDMCDigitalPsychiatry/issue-792
Browse files Browse the repository at this point in the history
Mode toggle option commented
  • Loading branch information
sarithapillai8 authored Dec 12, 2023
2 parents 527644a + 47ae541 commit 13452cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ function AppRouter({ ...props }) {
props.history.push(`/participant/${id}/portal`)
})()
}}
mode={state.researcherType}
mode={"researcher"} // Defaulting to researcher mode for now {state.researcherType}
tab={props.match.params.tab}
/>
</NavigationLayout>
Expand Down
6 changes: 4 additions & 2 deletions src/components/NavigationLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,9 @@ export default function NavigationLayout({
</Popover>
</Box>
)}
{(authType === "researcher" || authType === "admin") &&

{/**Commenting for now
{(authType === "researcher" || authType === "admin") &&
title !== "Administrator" &&
title !== "User Administrator" &&
title !== "Practice Lead" &&
Expand All @@ -437,7 +439,7 @@ export default function NavigationLayout({
<Box>
<ModeToggleButton changeResearcherType={changeResearcherType} />
</Box>
)}
)} */}
</Toolbar>
)}
{((authType !== "researcher" && authType !== "admin") ||
Expand Down

0 comments on commit 13452cc

Please sign in to comment.