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+ fix: add ability to use custom star icons
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import {
1919 useEntityPresentation ,
2020 useStarredEntities ,
2121} from '@backstage/plugin-catalog-react' ;
22- import { Link } from '@backstage/core-components' ;
22+ import { Link , AppIcon } from '@backstage/core-components' ;
2323import {
2424 CompoundEntityRef ,
2525 Entity ,
@@ -107,7 +107,7 @@ const StarredItem: FC<SectionComponentProps> = ({
107107 color : rhdhPalette ?. general ?. starredItemsColor ?? '#F3BA37' ,
108108 } }
109109 >
110- < Star />
110+ < AppIcon id = "star" Fallback = { Star } />
111111 </ IconButton >
112112 </ Tooltip >
113113 </ MenuItem >
@@ -123,7 +123,7 @@ export const StarredDropdown = () => {
123123
124124 return (
125125 < HeaderDropdownComponent
126- buttonContent = { < StarBorderIcon /> }
126+ buttonContent = { < AppIcon id = "unstarred" Fallback = { StarBorderIcon } /> }
127127 onOpen = { handleOpen }
128128 onClose = { handleClose }
129129 anchorEl = { anchorEl }
You can’t perform that action at this time.
0 commit comments