+
{x.items.map((subItem, subItemIndex) => {
return (
-
+ <>
+
+ >
)
})}
diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefListItems.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefListItems.tsx
index b81f6c5a1dd..dffa2c2d482 100644
--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefListItems.tsx
+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefListItems.tsx
@@ -1,7 +1,7 @@
import * as Accordion from '@radix-ui/react-accordion'
import Link from 'next/link'
import { useRouter } from 'next/router'
-import { IconChevronLeft } from 'ui'
+import { IconChevronLeft, IconChevronUp } from 'ui'
import * as NavItems from './NavigationMenu.constants'
import { find } from 'lodash'
@@ -15,6 +15,7 @@ import { RefIdOptions, RefKeyOptions } from './NavigationMenu'
import React, { Fragment } from 'react'
import { generateAllowedClientLibKeys } from '~/lib/refGenerator/helpers'
import { isFuncNotInLibraryOrVersion } from './NavigationMenu.utils'
+import { cn } from 'ui/src/utils/cn'
const HeaderImage = React.memo(function HeaderImage(props: any) {
const router = useRouter()
@@ -31,8 +32,6 @@ const HeaderImage = React.memo(function HeaderImage(props: any) {
})
const HeaderLink = React.memo(function HeaderLink(props: any) {
- const router = useRouter()
-
return (
{props.title ?? props.id}
@@ -46,6 +45,8 @@ const FunctionLink = React.memo(function FunctionLink({
icon,
library,
slug,
+ isParent = false,
+ isSubItem = false,
}: {
title: string
name?: string
@@ -54,6 +55,8 @@ const FunctionLink = React.memo(function FunctionLink({
product?: string
library: string
slug: string
+ isParent: boolean
+ isSubItem: boolean
}) {
const router = useRouter()
const activeAccordianItem = useMenuActiveRefId()
@@ -70,16 +73,29 @@ const FunctionLink = React.memo(function FunctionLink({
const active = activeAccordianItem === id
return (
-
+
{icon && }
{title}
+ {active && !isSubItem && (
+
+ )}
+ {isParent && (
+
+ )}
@@ -121,26 +137,37 @@ const RenderLink = React.memo(function RenderLink(props: any) {
value={active ? props.id : ''}
>
-
-
- {props.items &&
- props.items
- .filter((item) => props.allowedKeys.includes(item.id))
- .map((item) => {
- return (
-
- )
- })}
-
+
+ {props.items && (
+
+ {props.items &&
+ props.items
+ .filter((item) => props.allowedKeys.includes(item.id))
+ .map((item) => {
+ return (
+
+ )
+ })}
+
+ )}
)
@@ -244,7 +271,7 @@ const Content: React.FC = ({ id, lib, commonSections, sp