Add Bug icon to Icon component and update NavBar to use it

This commit is contained in:
Nawaz Dhandala
2026-01-08 19:53:36 +00:00
parent c8bdbf619a
commit 918fda707e
3 changed files with 14 additions and 2 deletions

View File

@@ -143,6 +143,7 @@ enum IconProp {
Brain = "Brain",
FlowDiagram = "FlowDiagram",
GitHub = "GitHub",
Bug = "Bug",
}
export default IconProp;

View File

@@ -1319,6 +1319,17 @@ const Icon: FunctionComponent<ComponentProps> = ({
/>
</>,
);
} else if (icon === IconProp.Bug) {
// Bug icon for exceptions - matching home page
return getSvgWrapper(
<>
<ellipse cx="12" cy="14" rx="5" ry="6" />
<path
strokeLinecap="round"
d="M9 8.5C9 6.5 10.5 5 12 5s3 1.5 3 3.5M4 11l3 1m10-1 3 1M4 17l3-1m10 1 3-1M12 8v12M9 14h6"
/>
</>,
);
}
return <></>;

View File

@@ -98,8 +98,8 @@ const DashboardNavbar: FunctionComponent<ComponentProps> = (
route: RouteUtil.populateRouteParams(
RouteMap[PageMap.EXCEPTIONS] as Route,
),
icon: IconProp.Alert,
iconColor: "red",
icon: IconProp.Bug,
iconColor: "orange",
},
{
title: "Service Catalog",