@primer/doctocat-nextjs 0.0.0-20251113161820 → 0.0.0-20251114122923
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, {useMemo} from 'react'
|
|
2
2
|
import NextLink from 'next/link'
|
|
3
3
|
import {NavList} from '@primer/react'
|
|
4
|
-
import {
|
|
4
|
+
import {Text} from '@primer/react-brand'
|
|
5
5
|
import type {Folder, MdxFile, PageMapItem} from 'nextra'
|
|
6
6
|
|
|
7
7
|
import styles from './Sidebar.module.css'
|
|
@@ -49,12 +49,12 @@ export function Sidebar({pageMap}: SidebarProps) {
|
|
|
49
49
|
return (
|
|
50
50
|
<div className={styles.Sidebar}>
|
|
51
51
|
{activeHeaderLink && (
|
|
52
|
-
<
|
|
52
|
+
<Text size="400" weight="semibold" className={styles.Sidebar__title}>
|
|
53
53
|
{activeHeaderLink.title}
|
|
54
|
-
|
|
55
|
-
</Heading>
|
|
54
|
+
</Text>
|
|
56
55
|
)}
|
|
57
|
-
|
|
56
|
+
|
|
57
|
+
<NavList className={styles.NavList} aria-label="Menu links">
|
|
58
58
|
{reorderedPageMap.map(item => {
|
|
59
59
|
if (item.hasOwnProperty('data')) return null
|
|
60
60
|
|