fix: add link to index on nav brand

This commit is contained in:
Stevan Freeborn
2023-04-14 00:40:25 -05:00
parent 9a0578b201
commit 6dcf4568a7
+7 -4
View File
@@ -1,5 +1,6 @@
'use client'; 'use client';
import Link from 'next/link.js';
import { useState } from 'react'; import { useState } from 'react';
import { Doc, DocsStructure } from '../types/types.js'; import { Doc, DocsStructure } from '../types/types.js';
import styles from './SideBar.module.css'; import styles from './SideBar.module.css';
@@ -90,10 +91,12 @@ export default function SideBar({
}) { }) {
return ( return (
<div className={styles.container}> <div className={styles.container}>
<h1 className={styles.title}> <Link href="/">
<span className={styles.onspring}>Onspring</span>{' '} <h1 className={styles.title}>
<span className={styles.api}>API</span> <span className={styles.onspring}>Onspring</span>{' '}
</h1> <span className={styles.api}>API</span>
</h1>
</Link>
<ListTree docs={version.docs} /> <ListTree docs={version.docs} />
</div> </div>
); );