feat: add navigation between version 1 and 2

This commit is contained in:
Stevan Freeborn
2023-04-10 23:20:07 -05:00
parent 39449a5e0f
commit 7d7bffc20a
10 changed files with 106 additions and 59 deletions
+3 -5
View File
@@ -76,11 +76,9 @@ function ListTree({ docs }: { docs: Doc[] }) {
}
export default function SideBar({
versionOne,
versionTwo,
version,
}: {
versionOne: DocsStructure;
versionTwo: DocsStructure;
version: DocsStructure;
}) {
return (
<div className={styles.container}>
@@ -88,7 +86,7 @@ export default function SideBar({
<span className={styles.onspring}>Onspring</span>{' '}
<span className={styles.api}>API</span>
</h1>
<ListTree docs={versionTwo.docs} />
<ListTree docs={version.docs} />
</div>
);
}