Skip to content

Commit 496f1a8

Browse files
update greenhous
1 parent 249b4a5 commit 496f1a8

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

  • apps/greenhouse/src/components/core-apps/org-admin/components

apps/greenhouse/src/components/core-apps/org-admin/components/SideNav.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*/
55

66
import React from "react"
7+
78
import { SideNavigation, SideNavigationItem, Badge } from "@cloudoperators/juno-ui-components"
89
import { useActivePlugin, useActions } from "../StoreProvider"
910

@@ -21,14 +22,13 @@ const SideNav = () => {
2122

2223
return (
2324
<SideNavigation>
24-
{PLUGINS.map((plugin, index) => (
25-
<SideNavigationItem
26-
key={index}
27-
selected={plugin.name === active}
28-
label={plugin.label}
29-
icon={"info"}
30-
onClick={() => setActive(plugin.name)}
31-
/>
25+
{PLUGINS.map((plugin) => (
26+
<SideNavigationItem key={plugin.name} selected={plugin.name === active} onClick={() => setActive(plugin.name)}>
27+
<div className="plugin-container">
28+
<span>{plugin.label}</span>
29+
{plugin.beta && <Badge text="beta" variant="info" />}
30+
</div>
31+
</SideNavigationItem>
3232
))}
3333
</SideNavigation>
3434
)

0 commit comments

Comments
 (0)