feat(version): add prowler version to the sidebar (#7086)

This commit is contained in:
Pablo Lara
2025-03-03 13:40:09 +01:00
committed by GitHub
parent bec5584d63
commit bbeef0299f
2 changed files with 8 additions and 1 deletions

3
.env
View File

@@ -121,3 +121,6 @@ DJANGO_SENTRY_DSN=
# Sentry settings
SENTRY_ENVIRONMENT=local
SENTRY_RELEASE=local
#### Prowler release version ####
NEXT_PUBLIC_PROWLER_RELEASE_VERSION=v5.4.0

View File

@@ -41,7 +41,7 @@ export const Menu = ({ isOpen }: { isOpen: boolean }) => {
</div>
<ScrollArea className="[&>div>div[style]]:!block">
<nav className="mt-2 h-full w-full lg:mt-6">
<ul className="flex min-h-[calc(100vh-16px-60px-40px-16px-32px-40px-32px)] flex-col items-start space-y-1 px-2 lg:min-h-[calc(100vh-16px-60px-40px-16px-64px-16px)]">
<ul className="flex min-h-[calc(100vh-16px-60px-40px-16px-32px-40px-32px-44px)] flex-col items-start space-y-1 px-2 lg:min-h-[calc(100vh-16px-60px-40px-16px-64px-16px-41px)]">
{menuList.map(({ groupLabel, menus }, index) => (
<li
className={cn(
@@ -166,6 +166,10 @@ export const Menu = ({ isOpen }: { isOpen: boolean }) => {
</Tooltip>
</TooltipProvider>
</div>
<span className="text-muted-foreground border-border mt-2 border-t pt-2 text-center text-xs lg:mt-4">
{process.env.NEXT_PUBLIC_PROWLER_RELEASE_VERSION}
</span>
</>
);
};