From 6fb8dae966a9fcbb19b5664ec714e6937c8eb438 Mon Sep 17 00:00:00 2001 From: miloschwartz Date: Thu, 16 Apr 2026 16:26:13 -0700 Subject: [PATCH] adjust sidebar --- src/components/LayoutSidebar.tsx | 3 -- src/components/ProductUpdates.tsx | 46 +++++++++++++++---------------- 2 files changed, 22 insertions(+), 27 deletions(-) diff --git a/src/components/LayoutSidebar.tsx b/src/components/LayoutSidebar.tsx index 1cd2131f7..779d5eb74 100644 --- a/src/components/LayoutSidebar.tsx +++ b/src/components/LayoutSidebar.tsx @@ -24,10 +24,8 @@ import dynamic from "next/dynamic"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { useEffect, useState } from "react"; -import { FaGithub } from "react-icons/fa"; import SidebarLicenseButton from "./SidebarLicenseButton"; import { SidebarSupportButton } from "./SidebarSupportButton"; -import { is } from "drizzle-orm"; const ProductUpdates = dynamic(() => import("./ProductUpdates"), { ssr: false @@ -291,7 +289,6 @@ export function LayoutSidebar({ : build === "enterprise" ? t("enterpriseEdition") : "Pangolin Cloud"} - {build === "enterprise" && diff --git a/src/components/ProductUpdates.tsx b/src/components/ProductUpdates.tsx index 76ab0252d..b1da32a93 100644 --- a/src/components/ProductUpdates.tsx +++ b/src/components/ProductUpdates.tsx @@ -103,29 +103,27 @@ export default function ProductUpdates({ )} >
- - {filteredUpdates.length > 1 && ( - <> - - - {showNewVersionPopup - ? t("productUpdateMoreInfo", { - noOfUpdates: filteredUpdates.length - }) - : t("productUpdateInfo", { - noOfUpdates: filteredUpdates.length - })} - - - )} - + {filteredUpdates.length > 1 && ( + + + + {showNewVersionPopup + ? t("productUpdateMoreInfo", { + noOfUpdates: filteredUpdates.length + }) + : t("productUpdateInfo", { + noOfUpdates: filteredUpdates.length + })} + + + )} 0} @@ -378,7 +376,7 @@ function NewVersionAvailable({ {t("pangolinUpdateAvailableReleaseNotes")} - +