mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
Add Bug icon to Icon component and update NavBar to use it
This commit is contained in:
@@ -143,6 +143,7 @@ enum IconProp {
|
||||
Brain = "Brain",
|
||||
FlowDiagram = "FlowDiagram",
|
||||
GitHub = "GitHub",
|
||||
Bug = "Bug",
|
||||
}
|
||||
|
||||
export default IconProp;
|
||||
|
||||
@@ -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 <></>;
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user