@@ -134,18 +126,18 @@ export default function NavBar({
}
>
-
+
Official Docs
- {version.hasSwagger ? (
+ {currentVersion.hasSwagger ? (
-
+
-
+
diff --git a/src/app/components/SectionDropdown.tsx b/src/app/components/SectionDropdown.tsx
index e6ff1a6..1435795 100644
--- a/src/app/components/SectionDropdown.tsx
+++ b/src/app/components/SectionDropdown.tsx
@@ -4,9 +4,9 @@ import { toKebabCase } from '../utils/stringUtils';
import styles from './SectionDropdown.module.css';
export default function SectionDropdown({
- version,
+ versionDocStructure,
}: {
- version: DocsStructure;
+ versionDocStructure: DocsStructure;
}) {
const { section, setSection } = useSectionContext();
const handleSelectChange = (e: any) => {
@@ -28,7 +28,7 @@ export default function SectionDropdown({
return result;
};
- const docs = getAllDocs(version.docs);
+ const docs = getAllDocs(versionDocStructure.docs);
return (