summaryrefslogtreecommitdiff
path: root/components/Sidebar/Link.tsx
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-10-09 20:07:46 +0200
committerThomas F. K. Jorna <[email protected]>2021-10-09 20:07:46 +0200
commit9d1692fbcf322db2d95586b1ab6768ba9328e5df (patch)
treeea378c4ca80e036cd2f26577b15ea652bb7f9e9b /components/Sidebar/Link.tsx
parent330bf49492a8babf5a1fc5f8d4c88f3237a0c1f8 (diff)
fix(preview): links in preview showing wrong name
Diffstat (limited to 'components/Sidebar/Link.tsx')
-rw-r--r--components/Sidebar/Link.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/Sidebar/Link.tsx b/components/Sidebar/Link.tsx
index 3791c74..16fc2ac 100644
--- a/components/Sidebar/Link.tsx
+++ b/components/Sidebar/Link.tsx
@@ -72,7 +72,7 @@ export const NormalLink = (props: NormalLinkProps) => {
_hover={{ textDecoration: 'none', cursor: 'pointer', bgColor: coolHighlightColor + '22' }}
_focus={{ outlineColor: highlightColor }}
>
- {children}
+ {nodeById[uri]?.title}
</Text>
)
}