File tree Expand file tree Collapse file tree
apps/greenhouse/src/components/core-apps/org-admin/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 */
55
66import React from "react"
7+
78import { SideNavigation , SideNavigationItem , Badge } from "@cloudoperators/juno-ui-components"
89import { 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 )
You can’t perform that action at this time.
0 commit comments