@orsetra/shared-ui 1.5.3 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -239,10 +239,10 @@ function Sidebar({ currentMenu, onMainMenuToggle, sidebarMenus = {}, main_base_u
|
|
|
239
239
|
"flex-1 overflow-y-auto",
|
|
240
240
|
isCollapsed ? "px-1 py-3 space-y-0.5" : "px-3 py-4 space-y-1"
|
|
241
241
|
)}>
|
|
242
|
-
{/* Main menu items — only shown in collapsed mode */}
|
|
242
|
+
{/* Main menu items — only shown in collapsed mode, excluding the current secondary menu */}
|
|
243
243
|
{isCollapsed && mainMenuItems.length > 0 && (
|
|
244
244
|
<>
|
|
245
|
-
{mainMenuItems.map((item) => {
|
|
245
|
+
{mainMenuItems.filter((item) => item.id !== currentMenu).map((item) => {
|
|
246
246
|
const href = `${main_base_url}/${item.id}`
|
|
247
247
|
const isActive = currentMenu === item.id
|
|
248
248
|
const linkEl = (
|
|
@@ -297,7 +297,7 @@ function Sidebar({ currentMenu, onMainMenuToggle, sidebarMenus = {}, main_base_u
|
|
|
297
297
|
: "text-text-secondary hover:bg-ui-background hover:text-text-primary border-transparent"
|
|
298
298
|
)}
|
|
299
299
|
>
|
|
300
|
-
<item.icon className={cn("h-4 w-4 flex-shrink-0", isActive ? "text-interactive" : "text-
|
|
300
|
+
<item.icon className={cn("h-4 w-4 flex-shrink-0", isActive ? "text-interactive" : "text-ibm-blue-50")} />
|
|
301
301
|
{!isCollapsed && item.name}
|
|
302
302
|
</Link>
|
|
303
303
|
)
|