From 627166edff0d7c32a99f330c83fb98891a68fc81 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Tue, 30 Mar 2021 11:51:45 +0200 Subject: section links working :tada: --- components/chapters.tsx | 1 + 1 file changed, 1 insertion(+) (limited to 'components') diff --git a/components/chapters.tsx b/components/chapters.tsx index 9c6fa95..9f15b87 100644 --- a/components/chapters.tsx +++ b/components/chapters.tsx @@ -39,6 +39,7 @@ function NavbarChapter(props: { classList={classes} title={props.chapter.name} onIconClick={() => props.chapter.children?.length > 0 && setCollapsed(!collapsed)} + href={"#" + props.chapter.sectionLink} key={(() => Math.round(Math.random() * 1e12))()} style={{ marginLeft: 12 * props.level, -- cgit v1.2.3