fix: add link to index on nav brand
This commit is contained in:
@@ -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>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user