diff --git a/apps/portal/src/components/Layouts/DocLayout.tsx b/apps/portal/src/components/Layouts/DocLayout.tsx index 97b3274af65..0f908c2a38b 100644 --- a/apps/portal/src/components/Layouts/DocLayout.tsx +++ b/apps/portal/src/components/Layouts/DocLayout.tsx @@ -49,7 +49,6 @@ export function DocLayout(props: DocLayoutProps) { )} diff --git a/apps/portal/src/components/others/Sidebar.tsx b/apps/portal/src/components/others/Sidebar.tsx index 44233e0305e..dbcada85c30 100644 --- a/apps/portal/src/components/others/Sidebar.tsx +++ b/apps/portal/src/components/others/Sidebar.tsx @@ -68,7 +68,7 @@ export function DocSidebar(props: ReferenceSideBarProps) { {props.links.map((link, i) => ( // biome-ignore lint/suspicious/noArrayIndexKey: TODO - fix this
  • - +
  • ))} @@ -76,7 +76,7 @@ export function DocSidebar(props: ReferenceSideBarProps) { ); } -function SidebarItem(props: { link: SidebarLink; onLinkClick?: () => void }) { +function SidebarItem(props: { link: SidebarLink; onLinkClick?: () => void, isFirst: boolean }) { const pathname = usePathname(); if ("separator" in props.link) { @@ -92,6 +92,7 @@ function SidebarItem(props: { link: SidebarLink; onLinkClick?: () => void }) { if (link.isCollapsible === false) { return ( void }) { function DocSidebarNonCollapsible(props: { linkGroup: LinkGroup; onLinkClick?: () => void; + isFirst: boolean; }) { const pathname = usePathname(); const { href, name, links, icon } = props.linkGroup; const isCategoryActive = href ? isSamePage(pathname, href) : false; return ( -
    +
    {icon && } {href ? ( @@ -173,7 +175,7 @@ function DocSidebarNonCollapsible(props: { return ( // biome-ignore lint/suspicious/noArrayIndexKey: TODO - fix this
  • - +
  • ); })} @@ -238,7 +240,7 @@ function DocSidebarCategory(props: { return ( // biome-ignore lint/suspicious/noArrayIndexKey: TODO - fix this
  • - +
  • ); })}