File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ ' @red-hat-developer-hub/backstage-plugin-global-header ' : patch
3+ ---
4+
5+ Add divider above Sign out option in profile dropdown for better visual separation
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import {
2121} from '@backstage/core-plugin-api' ;
2222
2323import MenuItem from '@mui/material/MenuItem' ;
24+ import Divider from '@mui/material/Divider' ;
2425
2526import { MenuItemLinkContent } from '../MenuItemLink/MenuItemLinkContent' ;
2627
@@ -33,11 +34,18 @@ export const LogoutButton = () => {
3334 } ;
3435
3536 return (
36- < MenuItem
37- onClick = { handleLogout }
38- sx = { { cursor : 'pointer' , width : '100%' , color : 'inherit' } }
39- >
40- < MenuItemLinkContent icon = "logout" label = "Sign out" />
41- </ MenuItem >
37+ < >
38+ < Divider />
39+ < MenuItem
40+ onClick = { handleLogout }
41+ sx = { {
42+ cursor : 'pointer' ,
43+ width : '100%' ,
44+ color : 'inherit' ,
45+ } }
46+ >
47+ < MenuItemLinkContent icon = "logout" label = "Sign out" />
48+ </ MenuItem >
49+ </ >
4250 ) ;
4351} ;
You can’t perform that action at this time.
0 commit comments