mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 14:44:43 -04:00
delete baseURL args
Signed-off-by: yamashush <38120991+yamashush@users.noreply.github.com>
This commit is contained in:
parent
744f96852c
commit
dea13bfa90
3 changed files with 4 additions and 7 deletions
|
@ -12,16 +12,15 @@ import React, { useState } from 'react'
|
|||
|
||||
export interface DocumentTocSidebarProps {
|
||||
width: number
|
||||
baseUrl: string
|
||||
}
|
||||
|
||||
export const DocumentTocSidebar: React.FC<DocumentTocSidebarProps> = ({ width, baseUrl }) => {
|
||||
export const DocumentTocSidebar: React.FC<DocumentTocSidebarProps> = ({ width }) => {
|
||||
const [tocAst, setTocAst] = useState<TocAst>()
|
||||
useExtensionEventEmitterHandler(TableOfContentsMarkdownExtension.EVENT_NAME, setTocAst)
|
||||
|
||||
return (
|
||||
<div className={styles.side}>
|
||||
{tocAst !== undefined && <WidthBasedTableOfContents tocAst={tocAst} baseUrl={baseUrl} width={width} />}
|
||||
{tocAst !== undefined && <WidthBasedTableOfContents tocAst={tocAst} width={width} />}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue