diff --git a/src/components/UI/docs/DocumentNav.tsx b/src/components/UI/docs/DocumentNav.tsx index 66cbcfa1fd..22f52b5933 100644 --- a/src/components/UI/docs/DocumentNav.tsx +++ b/src/components/UI/docs/DocumentNav.tsx @@ -1,5 +1,5 @@ import { FC } from 'react'; -import { Box, Divider, Link, Text } from '@chakra-ui/react'; +import { Box, Divider, Link, Stack, Text } from '@chakra-ui/react'; import NextLink from 'next/link'; import { parseHeadingId } from '../../../utils/parseHeadingId'; @@ -23,38 +23,40 @@ export const DocumentNav: FC = ({ content }) => { on this page + {parsedHeadings.map((heading, idx) => { return ( - - - {heading?.title} - - - - ); - })} + + + {heading?.title} + + + + ); + })} + ) : null; };