1
0
mirror of https://github.com/prometheus/docs.git synced 2026-02-05 15:45:27 +01:00

Make nav icons gray instead of orange

Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
Julius Volz
2025-05-18 19:49:08 +02:00
parent 8e88999bc8
commit 0aba8e8d16

View File

@@ -61,11 +61,10 @@ const iconMap: Record<string, React.ComponentType<IconProps>> = {
function NavIcon({ iconName, ...props }: { iconName: string } & IconProps) {
const Icon = iconMap[iconName];
return Icon ? (
<Icon {...props} color="var(--mantine-primary-color-3)" />
) : (
<span>?</span>
);
if (!Icon) {
throw new Error(`Unknown icon name: ${iconName}`);
}
return <Icon {...props} color="var(--mantine-color-gray-6)" />;
}
// Return a navigation tree UI for the DocsTree.