Skip to content

Commit

Permalink
fix: insights menu point alignment
Browse files Browse the repository at this point in the history
Signed-off-by: andreas-unleash <[email protected]>
  • Loading branch information
andreas-unleash committed Apr 12, 2024
1 parent 34e917f commit d98f35b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions frontend/src/component/menu/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
styled,
type Theme,
Box,
Typography,
} from '@mui/material';
import MenuIcon from '@mui/icons-material/Menu';
import SettingsIcon from '@mui/icons-material/Settings';
Expand Down Expand Up @@ -122,9 +123,16 @@ const StyledLinkWithBetaBadge = ({
to,
}: { title: string; to: string }) => (
<StyledLink to={to} sx={{ margin: 0 }}>
<div>
<Typography
component='div'
sx={(theme) => ({
display: 'flex',
alignItems: 'center',
gap: theme.spacing(1),
})}
>
<span>{title}</span> <Badge color='success'>Beta</Badge>
</div>
</Typography>
</StyledLink>
);

Expand Down

0 comments on commit d98f35b

Please sign in to comment.