File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,10 @@ import {
24
24
import { SpaceShip } from '@/components/SpaceShip' ;
25
25
import { LEFT_NAV_LINKS , RIGHT_NAV_LINKS } from '@/utils/globalnav' ;
26
26
import { LayoutProvider , LayoutHeader } from '@/components/Layout' ;
27
- import type { HeadingInterface } from '@/components/TableOfContents/TableOfContents' ;
27
+ import {
28
+ TableOfContents ,
29
+ type HeadingInterface
30
+ } from '@/components/TableOfContents/TableOfContents' ;
28
31
import { Breadcrumbs } from '@/components/Breadcrumbs' ;
29
32
import { debounce } from '@/utils/debounce' ;
30
33
import '@docsearch/css' ;
@@ -271,6 +274,7 @@ export const Layout = ({
271
274
{ children }
272
275
{ showNextPrev && < NextPrevious /> }
273
276
</ Flex >
277
+ { showTOC ? < TableOfContents headers = { tocHeadings } /> : null }
274
278
</ View >
275
279
< Footer hasTOC = { showTOC } />
276
280
</ View >
Original file line number Diff line number Diff line change @@ -176,8 +176,7 @@ export const LayoutHeader = ({
176
176
) }
177
177
</ div >
178
178
</ View >
179
- { showTOC ? < TableOfContents headers = { tocHeadings } /> : null }
180
- < div className = "" > </ div >
179
+ { showTOC ? < div className = "" > </ div > : null }
181
180
</ View >
182
181
183
182
{ showTOC ? (
You can’t perform that action at this time.
0 commit comments