diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-11-02 23:24:07 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-11-02 23:24:07 +0100 |
commit | 78f15c54c2e0d1f61abc9eec4d88ee020b191e95 (patch) | |
tree | 5aa007482d9e6f9e1aeb32429dcedf4f48073e33 /util/NoteContext.tsx | |
parent | d7d75c295209acbb9c0f48676b6059ae2fa76aeb (diff) |
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
Diffstat (limited to 'util/NoteContext.tsx')
-rw-r--r-- | util/NoteContext.tsx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/util/NoteContext.tsx b/util/NoteContext.tsx new file mode 100644 index 0000000..4578ca2 --- /dev/null +++ b/util/NoteContext.tsx @@ -0,0 +1,11 @@ +import { createContext } from 'react' + +export interface NoteContextProps { + outline: boolean + collapse: boolean +} + +export const NoteContext = createContext<NoteContextProps>({ + outline: false, + collapse: true, +}) |