summaryrefslogtreecommitdiff
path: root/components/Sidebar/Link.tsx
diff options
context:
space:
mode:
authorHuynh Tan <[email protected]>2022-06-30 15:52:03 +0700
committerHuynh Tan <[email protected]>2022-06-30 15:52:03 +0700
commit11111bb49889feb1b00e6814d9d81e3e23409d7c (patch)
tree34abd3ac10a1112baaea318cf5e38eabe33acb0a /components/Sidebar/Link.tsx
parent94b543c1d28743f85bee2342609ff2019f7ec7d8 (diff)
Read useInheritance from emacs config
Diffstat (limited to 'components/Sidebar/Link.tsx')
-rw-r--r--components/Sidebar/Link.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/Sidebar/Link.tsx b/components/Sidebar/Link.tsx
index 6130eb5..2f1ad64 100644
--- a/components/Sidebar/Link.tsx
+++ b/components/Sidebar/Link.tsx
@@ -42,6 +42,7 @@ export interface LinkProps {
isWiki?: boolean
noUnderline?: boolean
attachDir: string
+ useInheritance: boolean
macros: { [key: string]: string }
}
@@ -142,6 +143,7 @@ export const PreviewLink = (props: LinkProps) => {
isWiki,
macros,
attachDir,
+ useInheritance,
} = props
// TODO figure out how to properly type this
// see https://github.com/rehypejs/rehype-react/issues/25
@@ -296,6 +298,7 @@ export const PreviewLink = (props: LinkProps) => {
linksByNodeId,
macros,
attachDir,
+ useInheritance,
}}
previewNode={nodeById[id]!}
collapse={false}