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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user