aboutsummaryrefslogtreecommitdiff
path: root/components/chapters.tsx
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-03-30 11:51:45 +0200
committerlonkaars <l.leblansch@gmail.com>2021-03-30 11:51:45 +0200
commit627166edff0d7c32a99f330c83fb98891a68fc81 (patch)
treed0cd7947df334b66350564cd9380637e0ccb6d6b /components/chapters.tsx
parentf74523c96a890529544e9dec6df7fcc1827cee48 (diff)
section links working :tada:
Diffstat (limited to 'components/chapters.tsx')
-rw-r--r--components/chapters.tsx1
1 files changed, 1 insertions, 0 deletions
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,