mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 10:15:17 -04:00
Minor fixes (#911)
* Replace full links Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> * Use dark mode hook Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> * Add overflow for graphviz and abc Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> * Cap max height of toc overlay Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> * Remove extension from css import Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> * Fix hook Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
528e67e11e
commit
bf42b9c460
15 changed files with 39 additions and 28 deletions
|
@ -7,8 +7,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
import React, { useEffect, useRef, useState } from 'react'
|
||||
import { Alert } from 'react-bootstrap'
|
||||
import { Trans, useTranslation } from 'react-i18next'
|
||||
import { useSelector } from 'react-redux'
|
||||
import { ApplicationState } from '../../../../../redux'
|
||||
import { useIsDarkModeActivated } from '../../../../../hooks/common/use-is-dark-mode-activated'
|
||||
|
||||
export interface FlowChartProps {
|
||||
code: string
|
||||
|
@ -17,8 +16,7 @@ export interface FlowChartProps {
|
|||
export const FlowChart: React.FC<FlowChartProps> = ({ code }) => {
|
||||
const diagramRef = useRef<HTMLDivElement>(null)
|
||||
const [error, setError] = useState(false)
|
||||
|
||||
const darkModeActivated = useSelector((state: ApplicationState) => state.darkMode.darkMode)
|
||||
const darkModeActivated = useIsDarkModeActivated()
|
||||
|
||||
useTranslation()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue