From 33582aae39615afb9d72a952920d521937bac872 Mon Sep 17 00:00:00 2001 From: Corwin Smith Date: Fri, 16 Dec 2022 13:30:39 -0700 Subject: [PATCH] wip adding scroll to DocumentNav --- src/components/UI/docs/DocumentNav.tsx | 62 +++++++++++++------------- 1 file changed, 32 insertions(+), 30 deletions(-) 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; };