summaryrefslogtreecommitdiff
path: root/components/Sidebar
diff options
context:
space:
mode:
Diffstat (limited to 'components/Sidebar')
-rw-r--r--components/Sidebar/Note.tsx3
-rw-r--r--components/Sidebar/index.tsx3
2 files changed, 6 insertions, 0 deletions
diff --git a/components/Sidebar/Note.tsx b/components/Sidebar/Note.tsx
index 62cc8ad..1f864f3 100644
--- a/components/Sidebar/Note.tsx
+++ b/components/Sidebar/Note.tsx
@@ -20,6 +20,7 @@ export interface NoteProps {
openContextMenu: any
outline: boolean
collapse: boolean
+ macros?: { [key: string]: string }
}
export const Note = (props: NoteProps) => {
@@ -35,6 +36,7 @@ export const Note = (props: NoteProps) => {
openContextMenu,
outline,
collapse,
+ macros,
} = props
const extraStyle = outline ? outlineNoteStyle : viewerNoteStyle
@@ -68,6 +70,7 @@ export const Note = (props: NoteProps) => {
collapse,
nodeById,
linksByNodeId,
+ macros,
}}
/>
<Backlinks
diff --git a/components/Sidebar/index.tsx b/components/Sidebar/index.tsx
index 141c26d..c23d938 100644
--- a/components/Sidebar/index.tsx
+++ b/components/Sidebar/index.tsx
@@ -49,6 +49,7 @@ export interface SidebarProps {
setFilter: any
tagColors: TagColors
setTagColors: any
+ macros?: { [key: string]: string }
}
const Sidebar = (props: SidebarProps) => {
@@ -75,6 +76,7 @@ const Sidebar = (props: SidebarProps) => {
setFilter,
tagColors,
setTagColors,
+ macros,
} = props
const { highlightColor } = useContext(ThemeContext)
@@ -225,6 +227,7 @@ const Sidebar = (props: SidebarProps) => {
outline,
setOutline,
collapse,
+ macros,
}}
/>
</VStack>