From e80c1b344ea803230f205de806d2f95bdd103d04 Mon Sep 17 00:00:00 2001 From: ping-maxwell Date: Thu, 29 Jan 2026 20:23:42 +1000 Subject: [PATCH] fix: sidebar sub-page icons --- docs/components/side-bar.tsx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/components/side-bar.tsx b/docs/components/side-bar.tsx index 4cdaeabe94..0fd000a059 100644 --- a/docs/components/side-bar.tsx +++ b/docs/components/side-bar.tsx @@ -206,8 +206,11 @@ function SidebarListItem({
{/* Vertical line overlay */}
- {listItem.children?.map((child) => - child.group ? ( + {listItem.children?.map((child) => { + const icon = child.icon({ + className: "text-stone-950 dark:text-white", + }); + return child.group ? (
-
- -
+ {icon &&
{icon}
} {child.title} {child.isNew && } {child.isUpdated && } - ), - )} + ); + })}
)}