mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-06 17:41:52 -04:00
Switch the base framework from Create React App to Next.JS
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
a979b6ffdd
commit
77a60c6c48
361 changed files with 5130 additions and 9605 deletions
|
@ -1,4 +1,4 @@
|
|||
/*!
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
|
@ -9,7 +9,7 @@ import React, { useMemo } from 'react'
|
|||
import { Trans, useTranslation } from 'react-i18next'
|
||||
import { ShowIf } from '../../common/show-if/show-if'
|
||||
import { buildReactDomFromTocAst } from './build-react-dom-from-toc-ast'
|
||||
import './table-of-contents.scss'
|
||||
import styles from './table-of-contents.module.scss'
|
||||
|
||||
export interface TableOfContentsProps {
|
||||
ast: TocAst
|
||||
|
@ -26,7 +26,7 @@ export const TableOfContents: React.FC<TableOfContentsProps> = ({ ast, maxDepth
|
|||
)
|
||||
|
||||
return (
|
||||
<div className={`markdown-toc ${className ?? ''}`}>
|
||||
<div className={`${styles['markdown-toc']} ${className ?? ''}`}>
|
||||
<ShowIf condition={ast.c.length === 0}>
|
||||
<Trans i18nKey={'editor.infoToc'} />
|
||||
</ShowIf>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue