feat: get to displaying markdown copy

This commit is contained in:
Stevan Freeborn
2023-04-09 12:52:32 -05:00
parent 72d7cb7a4a
commit da40cdfaba
13 changed files with 135 additions and 43 deletions
+5 -7
View File
@@ -14,13 +14,11 @@ function TreeNode({ doc }: { doc: DocsStructure }) {
return (
<li className={styles.listItem}>
{hasChildren ? (
<div className={styles.expandable}>
<a
onClick={() => setIsExpanded(!isExpanded)}
className={styles.link}
>
{doc.title}
</a>
<div
onClick={() => setIsExpanded(!isExpanded)}
className={styles.expandable}
>
<a className={styles.link}>{doc.title}</a>
{isExpanded ? (
<svg
xmlns="http://www.w3.org/2000/svg"