1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-05-17 01:17:29 +02:00

fix: insights menu point alignment (#6847)

What is says on the tin

Closes
[1-2288](https://linear.app/unleash/issue/1-2288/misalignment-insights-beta-menu-item)

<img width="1429" alt="Screenshot 2024-04-12 at 14 42 28"
src="https://github.com/Unleash/unleash/assets/104830839/6b428e6f-e3b7-42e5-aa6b-c807338f5231">

---------

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
This commit is contained in:
andreas-unleash 2024-04-12 15:23:09 +03:00 committed by GitHub
parent 34e917f0ee
commit 04e4201021
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -117,14 +117,20 @@ const styledIconProps = (theme: Theme) => ({
const StyledLink = styled(Link)(({ theme }) => focusable(theme));
const StyledText = styled('div')(({ theme }) => ({
display: 'flex',
alignItems: 'center',
gap: theme.spacing(1),
}));
const StyledLinkWithBetaBadge = ({
title,
to,
}: { title: string; to: string }) => (
<StyledLink to={to} sx={{ margin: 0 }}>
<div>
<StyledText>
<span>{title}</span> <Badge color='success'>Beta</Badge>
</div>
</StyledText>
</StyledLink>
);