Skip to content

Commit

Permalink
fix: only show hamburger menu button when there are header links
Browse files Browse the repository at this point in the history
  • Loading branch information
beeman committed Sep 4, 2023
1 parent 78e3c97 commit fc640fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/web/ui/layout/src/lib/ui-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ export function UiHeader({ icon: Icon, opened, links, close, toggle, text }: UiH
return (
<Header height={{ base: 50, md: 70 }} className={classes.root}>
<Container className={classes.header}>
<Group>
<Burger opened={opened} onClick={toggle} className={classes.burger} size="sm" />
<Anchor component={Link} to="/dashboard" replace underline={false}>
<Group align="center">
{items.length ? <Burger opened={opened} onClick={toggle} className={classes.burger} size="sm" /> : null}
<Anchor component={Link} to="/dashboard" replace underline={false} display="flex">
<UiLogoMark size={36} />
</Anchor>
<Group spacing={5} className={classes.links}>
Expand Down

0 comments on commit fc640fb

Please sign in to comment.