delete baseURL args

Signed-off-by: yamashush <38120991+yamashush@users.noreply.github.com>
This commit is contained in:
yamashush 2024-01-20 12:47:02 +09:00 committed by Tilman Vatteroth
parent 744f96852c
commit dea13bfa90
3 changed files with 4 additions and 7 deletions

View file

@ -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>
)
}