fix: consolidate version information into constants

This commit is contained in:
Stevan Freeborn
2023-04-28 10:51:57 -05:00
parent fd4810f0b2
commit 9d0c148db1
13 changed files with 126 additions and 118 deletions
+3 -3
View File
@@ -107,9 +107,9 @@ function ListTree({ docs }: { docs: Doc[] }) {
}
export default function SideBar({
version,
versionDocStructure,
}: {
version: DocsStructure;
versionDocStructure: DocsStructure;
}) {
const { theme, setTheme } = useThemeContext();
@@ -138,7 +138,7 @@ export default function SideBar({
></span>
</label>
</div>
<ListTree docs={version.docs} />
<ListTree docs={versionDocStructure.docs} />
</div>
);
}