mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-22 03:05:19 -04:00
feat: add settings dialog
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
39823275a0
commit
4e18ce38f3
45 changed files with 656 additions and 376 deletions
|
@ -11,7 +11,7 @@ import type { Extension } from '@codemirror/state'
|
|||
import type { EditorView } from '@codemirror/view'
|
||||
import { optionalAppExtensions } from '../../../../extensions/extra-integrations/optional-app-extensions'
|
||||
import { FrontmatterLinter } from './frontmatter-linter'
|
||||
import { useIsDarkModeActivated } from '../../../../hooks/common/use-is-dark-mode-activated'
|
||||
import { useDarkModeState } from '../../../../hooks/common/use-dark-mode-state'
|
||||
|
||||
/**
|
||||
* The Linter interface.
|
||||
|
@ -37,7 +37,7 @@ const createLinterExtension = () =>
|
|||
* @return The build codemirror linter extension
|
||||
*/
|
||||
export const useLinter = (): Extension => {
|
||||
const darkModeActivated = useIsDarkModeActivated()
|
||||
const darkModeActivated = useDarkModeState()
|
||||
|
||||
return useMemo(() => (darkModeActivated ? createLinterExtension() : createLinterExtension()), [darkModeActivated])
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue