Skip to content

Commit

Permalink
Merge pull request #779 from BIDMCDigitalPsychiatry/issue-771
Browse files Browse the repository at this point in the history
Detailed graph hidden
  • Loading branch information
sarithapillai8 authored Aug 25, 2023
2 parents b924da3 + 32bb26b commit eb00a6b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/ActivityCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,18 @@ export default function ActivityCard({
return (
<React.Fragment>
<Box display="flex" justifyContent="space-between" alignContent="center" p={2}>
{!Boolean(visibleSlice) && activity.spec !== "lamp.scratch_image" && activity.spec !== "lamp.breathe" ? (
{!Boolean(visibleSlice) &&
activity.spec !== "lamp.scratch_image" &&
activity.spec !== "lamp.symbol_digit_substitution" &&
activity.spec !== "lamp.breathe" ? (
<Tooltip title={`${t("Switch Views")}`}>
<IconButton onClick={(event) => setShowGrid(!showGrid)}>
<Icon fontSize="small">dashboard</Icon>
</IconButton>
</Tooltip>
) : (
<Tooltip title={`${t("Go Back")}`}>
<IconButton onClick={(event) => setVisibleSlice(undefined)}>
<IconButton onClick={() => window.history.back()}>
<Icon fontSize="small">arrow_back</Icon>
</IconButton>
</Tooltip>
Expand Down

0 comments on commit eb00a6b

Please sign in to comment.