mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 17:26:29 -05:00
refactor: move dark-mode-state hook into other directory
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
cba8d917ed
commit
bcff03ef99
7 changed files with 8 additions and 8 deletions
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
import { useDarkModeState } from '../../../hooks/common/use-dark-mode-state'
|
||||
import { useDarkModeState } from '../../../hooks/dark-mode/use-dark-mode-state'
|
||||
import { Branding } from '../../common/branding/branding'
|
||||
import {
|
||||
HedgeDocLogoSize,
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
*/
|
||||
import { useApplicationState } from '../../../hooks/common/use-application-state'
|
||||
import { ORIGIN, useBaseUrl } from '../../../hooks/common/use-base-url'
|
||||
import { useDarkModeState } from '../../../hooks/common/use-dark-mode-state'
|
||||
import { useMayEdit } from '../../../hooks/common/use-may-edit'
|
||||
import { useDarkModeState } from '../../../hooks/dark-mode/use-dark-mode-state'
|
||||
import { cypressAttribute, cypressId } from '../../../utils/cypress-attribute'
|
||||
import { findLanguageByCodeBlockName } from '../../markdown-renderer/extensions/_base-classes/code-block-markdown-extension/find-language-by-code-block-name'
|
||||
import type { ScrollProps } from '../synced-scroll/scroll-props'
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
import { allAppExtensions } from '../../../../extensions/all-app-extensions'
|
||||
import { useDarkModeState } from '../../../../hooks/common/use-dark-mode-state'
|
||||
import { useDarkModeState } from '../../../../hooks/dark-mode/use-dark-mode-state'
|
||||
import { FrontmatterLinter } from './frontmatter-linter'
|
||||
import type { Diagnostic } from '@codemirror/lint'
|
||||
import { linter } from '@codemirror/lint'
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
import fontStyles from '../../../../../../global-styles/variables.module.scss'
|
||||
import { useDarkModeState } from '../../../../../hooks/common/use-dark-mode-state'
|
||||
import { useDarkModeState } from '../../../../../hooks/dark-mode/use-dark-mode-state'
|
||||
import styles from './emoji-picker.module.scss'
|
||||
import { Picker } from 'emoji-picker-element'
|
||||
import type { EmojiClickEvent, EmojiClickEventDetail } from 'emoji-picker-element/shared'
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
import { getRevision } from '../../../../../../api/revisions'
|
||||
import { useApplicationState } from '../../../../../../hooks/common/use-application-state'
|
||||
import { useDarkModeState } from '../../../../../../hooks/common/use-dark-mode-state'
|
||||
import { useDarkModeState } from '../../../../../../hooks/dark-mode/use-dark-mode-state'
|
||||
import { AsyncLoadingBoundary } from '../../../../../common/async-loading-boundary/async-loading-boundary'
|
||||
import { invertUnifiedPatch } from './invert-unified-patch'
|
||||
import { Optional } from '@mrdrogdrog/optional'
|
||||
|
|
|
@ -7,7 +7,7 @@ import fontStyles from '../../../../global-styles/variables.module.scss'
|
|||
import { AsyncLoadingBoundary } from '../../../components/common/async-loading-boundary/async-loading-boundary'
|
||||
import { ShowIf } from '../../../components/common/show-if/show-if'
|
||||
import type { CodeProps } from '../../../components/markdown-renderer/replace-components/code-block-component-replacer'
|
||||
import { useDarkModeState } from '../../../hooks/common/use-dark-mode-state'
|
||||
import { useDarkModeState } from '../../../hooks/dark-mode/use-dark-mode-state'
|
||||
import { Logger } from '../../../utils/logger'
|
||||
import { testId } from '../../../utils/test-id'
|
||||
import React, { useEffect, useRef, useState } from 'react'
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
||||
* SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
import { DarkModePreference } from '../../redux/dark-mode/types'
|
||||
import { useApplicationState } from './use-application-state'
|
||||
import { useApplicationState } from '../common/use-application-state'
|
||||
import useMediaQuery from '@restart/hooks/useMediaQuery'
|
||||
|
||||
/**
|
Loading…
Reference in a new issue