From 78f15c54c2e0d1f61abc9eec4d88ee020b191e95 Mon Sep 17 00:00:00 2001
From: "Thomas F. K. Jorna" <hello@tefkah.com>
Date: Tue, 2 Nov 2021 23:24:07 +0100
Subject: Feat/collapse: add collapsible/toggleable headers and outline layout
 in the preview panel (#139)

* feat(preview): collapsible headings

* feat(preview): collapsible headings

* feat(collapse): change icons for headings

* feat(collapse):

* feat(collapse): use new uniorg and better looks

* feat(collapse): fix typescript errors

* fix(ci): better filter

* feat(collapse): more small adjustments

* feat(collapse): collapse all button

* fix(collapse): fix global css

* fix(cd): remove yarn and add export

* fix(collapse): type-errors

* fix(cd): fix format-all fucking up yml
---
 util/uniorg.tsx | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'util/uniorg.tsx')

diff --git a/util/uniorg.tsx b/util/uniorg.tsx
index 98aa878..d0251c0 100644
--- a/util/uniorg.tsx
+++ b/util/uniorg.tsx
@@ -10,6 +10,8 @@ export interface UniOrgProps {
   nodeByCite: NodeByCite
   setSidebarHighlightedNode: any
   openContextMenu: any
+  outline: boolean
+  collapse: boolean
 }
 
 export const UniOrg = (props: UniOrgProps) => {
@@ -20,6 +22,8 @@ export const UniOrg = (props: UniOrgProps) => {
     nodeByCite,
     previewNode,
     setPreviewNode,
+    outline,
+    collapse,
   } = props
 
   const [previewText, setPreviewText] = useState('')
@@ -58,6 +62,8 @@ export const UniOrg = (props: UniOrgProps) => {
             nodeByCite,
             setSidebarHighlightedNode,
             openContextMenu,
+            outline,
+            collapse,
           }}
         />
       )}
-- 
cgit v1.2.3

