mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix extension sidebar items sometimes being expandable (#4835)
* Fix extension sidebar items sometimes being expandable - Change <TabRoutesSidebarItems> to be just a helper function Signed-off-by: Sebastian Malton <sebastian@malton.name> * Actual fix Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
f53892cb46
commit
d4d2da1d28
9 files changed
+34
-34
No files matched your search
@@ -11,7 +11,7 @@ import { isActiveRoute } from "../../navigation";
|
||||
import { Icon } from "../icon";
|
||||
import { SidebarItem } from "../layout/sidebar-item";
|
||||
import type { TabLayoutRoute } from "../layout/tab-layout";
|
||||
import { TabRoutesSidebarItems } from "../layout/tab-routes-sidebar-items";
|
||||
import { renderTabRoutesSidebarItems } from "../layout/tab-routes-sidebar-items";
|
||||
import workloadsRouteTabsInjectable from "./route-tabs.injectable";
|
||||
|
||||
export interface WorkloadSidebarItemProps {}
|
||||
@@ -32,7 +32,7 @@ const NonInjectedWorkloadsSidebarItem = observer(({ routes }: Dependencies & Wor
|
||||
url={workloadsURL()}
|
||||
icon={<Icon svg="workloads"/>}
|
||||
>
|
||||
<TabRoutesSidebarItems routes={tabRoutes} />
|
||||
{renderTabRoutesSidebarItems(tabRoutes)}
|
||||
</SidebarItem>
|
||||
);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user