summaryrefslogtreecommitdiff
path: root/components/Sidebar/Backlinks.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/Backlinks.tsx
parent94b543c1d28743f85bee2342609ff2019f7ec7d8 (diff)
Read useInheritance from emacs config
Diffstat (limited to 'components/Sidebar/Backlinks.tsx')
-rw-r--r--components/Sidebar/Backlinks.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/Sidebar/Backlinks.tsx b/components/Sidebar/Backlinks.tsx
index 6a5dd00..0bbf415 100644
--- a/components/Sidebar/Backlinks.tsx
+++ b/components/Sidebar/Backlinks.tsx
@@ -17,6 +17,7 @@ export interface BacklinksProps {
openContextMenu: any
outline: boolean
attachDir: string
+ useInheritance: boolean
macros: { [key: string]: string }
}
@@ -36,6 +37,7 @@ export const Backlinks = (props: BacklinksProps) => {
outline,
macros,
attachDir,
+ useInheritance,
} = props
const links = linksByNodeId[(previewNode as OrgRoamNode)?.id] ?? []
@@ -73,7 +75,7 @@ export const Backlinks = (props: BacklinksProps) => {
openContextMenu={openContextMenu}
outline={outline}
noUnderline
- {...{ attachDir, macros }}
+ {...{ attachDir, useInheritance, macros }}
>
{nodeById[link as string]?.title}
</PreviewLink>