From 0aba8e8d1656bfef2b983366908af7809fe2b3e6 Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Sun, 18 May 2025 19:49:08 +0200 Subject: [PATCH] Make nav icons gray instead of orange Signed-off-by: Julius Volz --- src/app/docs/layout.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/app/docs/layout.tsx b/src/app/docs/layout.tsx index 74367a31..0863476e 100644 --- a/src/app/docs/layout.tsx +++ b/src/app/docs/layout.tsx @@ -61,11 +61,10 @@ const iconMap: Record> = { function NavIcon({ iconName, ...props }: { iconName: string } & IconProps) { const Icon = iconMap[iconName]; - return Icon ? ( - - ) : ( - ? - ); + if (!Icon) { + throw new Error(`Unknown icon name: ${iconName}`); + } + return ; } // Return a navigation tree UI for the DocsTree.