File tree 1 file changed +1
-4
lines changed
docs/src/modules/components
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import { styled } from '@mui/material/styles';
6
6
import Typography from '@mui/material/Typography' ;
7
7
import NoSsr from '@mui/material/NoSsr' ;
8
8
import Link from 'docs/src/modules/components/Link' ;
9
- import PageContext from 'docs/src/modules/components/PageContext' ;
10
9
import { useTranslate } from 'docs/src/modules/utils/i18n' ;
11
10
import TableOfContentsBanner from 'docs/src/components/banner/TableOfContentsBanner' ;
12
11
@@ -119,8 +118,6 @@ export default function AppTableOfContents(props) {
119
118
const t = useTranslate ( ) ;
120
119
121
120
const items = React . useMemo ( ( ) => flatten ( toc ) , [ toc ] ) ;
122
-
123
- const { activePage } = React . useContext ( PageContext ) ;
124
121
const [ activeState , setActiveState ] = React . useState ( null ) ;
125
122
const clickedRef = React . useRef ( false ) ;
126
123
const unsetClickedRef = React . useRef ( null ) ;
@@ -199,7 +196,7 @@ export default function AppTableOfContents(props) {
199
196
const itemLink = ( item , secondary ) => (
200
197
< NavItem
201
198
display = "block"
202
- href = { `${ activePage ?. linkProps ?. linkAs ?? activePage ?. pathname } #${ item . hash } ` }
199
+ href = { `#${ item . hash } ` }
203
200
underline = "none"
204
201
onClick = { handleClick ( item . hash ) }
205
202
active = { activeState === item . hash }
You can’t perform that action at this time.
0 commit comments