diff --git a/src/components/LayoutMobileMenu.tsx b/src/components/LayoutMobileMenu.tsx index f24c2f13..b661d780 100644 --- a/src/components/LayoutMobileMenu.tsx +++ b/src/components/LayoutMobileMenu.tsx @@ -5,13 +5,11 @@ import { SidebarNav } from "@app/components/SidebarNav"; import { OrgSelector } from "@app/components/OrgSelector"; import { cn } from "@app/lib/cn"; import { ListUserOrgsResponse } from "@server/routers/org"; -import SupporterStatus from "@app/components/SupporterStatus"; import { Button } from "@app/components/ui/button"; -import { ExternalLink, Menu, Server } from "lucide-react"; +import { ArrowRight, Menu, Server } from "lucide-react"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { useUserContext } from "@app/hooks/useUserContext"; -import { useEnvContext } from "@app/hooks/useEnvContext"; import { useTranslations } from "next-intl"; import ProfileIcon from "@app/components/ProfileIcon"; import ThemeSwitcher from "@app/components/ThemeSwitcher"; @@ -44,7 +42,6 @@ export function LayoutMobileMenu({ const pathname = usePathname(); const isAdminPage = pathname?.startsWith("/admin"); const { user } = useUserContext(); - const { env } = useEnvContext(); const t = useTranslations(); return ( @@ -83,7 +80,7 @@ export function LayoutMobileMenu({
{!isAdminPage && user.serverAdmin && ( -
+
- + {t( "serverAdmin" )} +
)} @@ -115,22 +113,6 @@ export function LayoutMobileMenu({
-
- - {env?.app?.version && ( -
- - v{env.app.version} - - -
- )} -
diff --git a/src/components/LayoutSidebar.tsx b/src/components/LayoutSidebar.tsx index 940e91fe..e9e2d61e 100644 --- a/src/components/LayoutSidebar.tsx +++ b/src/components/LayoutSidebar.tsx @@ -146,6 +146,46 @@ export function LayoutSidebar({ />
+ {!isAdminPage && user.serverAdmin && ( +
+ + + + + {!isSidebarCollapsed && ( + <> + + {t("serverAdmin")} + + + + )} + +
+ )}
- {!isAdminPage && user.serverAdmin && ( -
- - - - - {!isSidebarCollapsed && ( - <> - - {t("serverAdmin")} - - - - )} - -
- )} - {isSidebarCollapsed && (
@@ -218,7 +224,7 @@ export function LayoutSidebar({
-
+
{canShowProductUpdates && (