Skip to content

Commit

Permalink
Hides expand/collapse button when mobileToolbar is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbs committed Oct 27, 2023
1 parent 08398dd commit b437401
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/features/sidebar/view/base/responsive/SecondaryHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ export default function ResponsiveSecondaryHeader({
showOpenDrawer={showOpenDrawer}
onOpenDrawer={onOpenDrawer}
trailingItem={
<Stack direction="row" alignItems="center" spacing={1}>
<Stack direction="row" alignItems="center">
{trailingItem}
<Box sx={{ display: { sm: mobileToolbar ? "block" : "none", md: "none" } }}>
{mobileToolbar &&
<IconButton edge="end" onClick={() => onToggleMobileToolbar(!showMobileToolbar) }>
<ExpandCircleDownIcon sx={{
transform: showMobileToolbar ? "rotate(180deg)" : "none" }}
/>
</IconButton>
</Box>
}
</Stack>
}
>
Expand Down

0 comments on commit b437401

Please sign in to comment.