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
@@ -10,7 +10,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 { helmRoute, helmURL } from "../../../common/routes";
|
||||
import networkRouteTabsInjectable from "./route-tabs.injectable";
|
||||
|
||||
@@ -31,7 +31,7 @@ const NonInjectedHelmSidebarItem = observer(({ routes }: Dependencies & HelmSide
|
||||
url={helmURL()}
|
||||
icon={<Icon material="apps"/>}
|
||||
>
|
||||
<TabRoutesSidebarItems routes={tabRoutes} />
|
||||
{renderTabRoutesSidebarItems(tabRoutes)}
|
||||
</SidebarItem>
|
||||
);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user