summaryrefslogtreecommitdiff
path: root/components/Sidebar/Note.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'components/Sidebar/Note.tsx')
-rw-r--r--components/Sidebar/Note.tsx8
1 files changed, 8 insertions, 0 deletions
diff --git a/components/Sidebar/Note.tsx b/components/Sidebar/Note.tsx
index 62cc8ad..2b76994 100644
--- a/components/Sidebar/Note.tsx
+++ b/components/Sidebar/Note.tsx
@@ -20,6 +20,8 @@ export interface NoteProps {
openContextMenu: any
outline: boolean
collapse: boolean
+ macros?: { [key: string]: string }
+ attachDir: string
}
export const Note = (props: NoteProps) => {
@@ -35,6 +37,8 @@ export const Note = (props: NoteProps) => {
openContextMenu,
outline,
collapse,
+ macros,
+ attachDir,
} = props
const extraStyle = outline ? outlineNoteStyle : viewerNoteStyle
@@ -68,6 +72,8 @@ export const Note = (props: NoteProps) => {
collapse,
nodeById,
linksByNodeId,
+ macros,
+ attachDir,
}}
/>
<Backlinks
@@ -80,7 +86,9 @@ export const Note = (props: NoteProps) => {
setSidebarHighlightedNode,
openContextMenu,
outline,
+ attachDir,
}}
+ macros={macros || {}}
/>
</Flex>
)}