Skip to content

Commit a4ed463

Browse files
author
katiegoines
committed
put desktop toc back in layout
1 parent 96ab617 commit a4ed463

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/components/Layout/Layout.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ import {
2424
import { SpaceShip } from '@/components/SpaceShip';
2525
import { LEFT_NAV_LINKS, RIGHT_NAV_LINKS } from '@/utils/globalnav';
2626
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';
2831
import { Breadcrumbs } from '@/components/Breadcrumbs';
2932
import { debounce } from '@/utils/debounce';
3033
import '@docsearch/css';
@@ -271,6 +274,7 @@ export const Layout = ({
271274
{children}
272275
{showNextPrev && <NextPrevious />}
273276
</Flex>
277+
{showTOC ? <TableOfContents headers={tocHeadings} /> : null}
274278
</View>
275279
<Footer hasTOC={showTOC} />
276280
</View>

src/components/Layout/LayoutHeader.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,7 @@ export const LayoutHeader = ({
176176
)}
177177
</div>
178178
</View>
179-
{showTOC ? <TableOfContents headers={tocHeadings} /> : null}
180-
<div className=""></div>
179+
{showTOC ? <div className=""></div> : null}
181180
</View>
182181

183182
{showTOC ? (

0 commit comments

Comments
 (0)