Skip to content

Commit

Permalink
put desktop toc back in layout
Browse files Browse the repository at this point in the history
  • Loading branch information
katiegoines committed Aug 9, 2024
1 parent 96ab617 commit a4ed463
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/components/Layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ import {
import { SpaceShip } from '@/components/SpaceShip';
import { LEFT_NAV_LINKS, RIGHT_NAV_LINKS } from '@/utils/globalnav';
import { LayoutProvider, LayoutHeader } from '@/components/Layout';
import type { HeadingInterface } from '@/components/TableOfContents/TableOfContents';
import {
TableOfContents,
type HeadingInterface
} from '@/components/TableOfContents/TableOfContents';
import { Breadcrumbs } from '@/components/Breadcrumbs';
import { debounce } from '@/utils/debounce';
import '@docsearch/css';
Expand Down Expand Up @@ -271,6 +274,7 @@ export const Layout = ({
{children}
{showNextPrev && <NextPrevious />}
</Flex>
{showTOC ? <TableOfContents headers={tocHeadings} /> : null}
</View>
<Footer hasTOC={showTOC} />
</View>
Expand Down
3 changes: 1 addition & 2 deletions src/components/Layout/LayoutHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,7 @@ export const LayoutHeader = ({
)}
</div>
</View>
{showTOC ? <TableOfContents headers={tocHeadings} /> : null}
<div className=""></div>
{showTOC ? <div className=""></div> : null}
</View>

{showTOC ? (
Expand Down

0 comments on commit a4ed463

Please sign in to comment.