refactor(toc): rename css classes

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2023-06-06 22:07:28 +02:00
parent 2b593ed4fe
commit 450d70961a
3 changed files with 8 additions and 7 deletions

View file

@ -19,8 +19,9 @@ export interface DocumentTocSidebarProps {
export const DocumentTocSidebar: React.FC<DocumentTocSidebarProps> = ({ width, baseUrl }) => {
const [tocAst, setTocAst] = useState<TocAst>()
useExtensionEventEmitterHandler(TableOfContentsMarkdownExtension.EVENT_NAME, setTocAst)
return (
<div className={styles['markdown-document-side']}>
<div className={styles.side}>
<ShowIf condition={!!tocAst}>
<WidthBasedTableOfContents tocAst={tocAst as TocAst} baseUrl={baseUrl} width={width} />
</ShowIf>