diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefList.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefList.tsx
index ba0463f17d8..e246100f987 100644
--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefList.tsx
+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuRefList.tsx
@@ -24,7 +24,7 @@ const NavigationMenuRefList = ({ currentLevel, setLevel, id }) => {
currentLevel !== id ? 'opacity-0 invisible absolute' : '',
].join(' ')}
>
-
+
+
+ {jsSpec.functions.map((x, index) => {
+ return (
+ -
+ {x.items && x.items.length > 0 ? (
+ <>
+ {x.items.map((subItem, subItemIndex) => {
+ return (
+ <>
+ {subItemIndex === 0 && (
+ <>
+
+
+ {x.name}
+
+ >
+ )}
- {jsSpec.functions.map((x, index) => {
- return (
-
- {x.items && x.items.length > 0 ? (
- <>
- {x.items.map((subItem, subItemIndex) => {
- return (
- <>
- {subItemIndex === 0 && (
- <>
-
-
- {x.name}
-
- >
- )}
-
-
-
+
{subItem.name}
-
- {/* {subItemIndex === x.items.length - 1 && (
+ {/* {subItemIndex === x.items.length - 1 && (
)} */}
- >
- )
- })}
- >
- ) : (
- <>
-
-
+ >
+ )
+ })}
+ >
+ ) : (
+ <>
{x.icon &&
}
{x.title}
-
- >
- )}
-
- )
- })}
+ >
+ )}
+
+ )
+ })}
+
{menu.extras && (
<>
@@ -120,7 +118,7 @@ const NavigationMenuRefList = ({ currentLevel, setLevel, id }) => {
)
})}
-
+
)
}
diff --git a/apps/docs/layouts/SiteLayout.tsx b/apps/docs/layouts/SiteLayout.tsx
index 13401b3b88b..429dc7719e3 100644
--- a/apps/docs/layouts/SiteLayout.tsx
+++ b/apps/docs/layouts/SiteLayout.tsx
@@ -6,10 +6,6 @@ import NavigationMenu from '~/components/Navigation/NavigationMenu/NavigationMen
import TopNavBar from '~/components/Navigation/NavigationMenu/TopNavBar'
const Layout = ({ children }) => {
- if (process.env.NEXT_PUBLIC_NEW_DOCS !== 'true') {
- return <>{children}>
- }
-
const router = useRouter()
useEffect(() => {
@@ -22,6 +18,10 @@ const Layout = ({ children }) => {
}
}, [])
+ if (process.env.NEXT_PUBLIC_NEW_DOCS !== 'true') {
+ return <>{children}>
+ }
+
return (
<>
diff --git a/apps/docs/pages/new/reference/javascript/[...slug].tsx b/apps/docs/pages/new/reference/javascript/[...slug].tsx
index 16e13851927..d0746456ffe 100644
--- a/apps/docs/pages/new/reference/javascript/[...slug].tsx
+++ b/apps/docs/pages/new/reference/javascript/[...slug].tsx
@@ -231,15 +231,15 @@ export default function Ref(props) {
' mb-16',
].join(' ')}
>
- updateUrl(item.id)}
>
{examples.functions[itemIndex].title ??
examples.functions[itemIndex].id ??
item.name ??
item.id}
-
+
{shortText && (
<>