feat: add mobile navigation dropdown

This commit is contained in:
Stevan Freeborn
2023-04-18 22:51:50 -05:00
parent d0e3855600
commit 5eeba20302
5 changed files with 116 additions and 24 deletions
+4 -1
View File
@@ -24,7 +24,10 @@ function TreeNode({ doc }: { doc: Doc }) {
>
{doc.title}
</a>
<div onClick={() => setIsExpanded(!isExpanded)}>
<div
className={styles.chevronContainer}
onClick={() => setIsExpanded(!isExpanded)}
>
{isExpanded ? (
<svg
xmlns="http://www.w3.org/2000/svg"