diff options
Diffstat (limited to 'src/components/ToC/ToC.tsx')
| -rw-r--r-- | src/components/ToC/ToC.tsx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/ToC/ToC.tsx b/src/components/ToC/ToC.tsx index e7aafa5..3ab482c 100644 --- a/src/components/ToC/ToC.tsx +++ b/src/components/ToC/ToC.tsx @@ -2,6 +2,7 @@ import { t } from '@lingui/macro'; import { Heading } from '@ts/types/app'; import { slugify } from '@utils/helpers/slugify'; import useHeadingsTree from '@utils/hooks/useHeadingsTree'; +import styles from './ToC.module.scss'; const ToC = () => { const headingsTree = useHeadingsTree('article'); @@ -21,10 +22,10 @@ const ToC = () => { }; return ( - <> + <div className={styles.wrapper}> <h2>{title}</h2> - <ol>{getItems(headingsTree)}</ol> - </> + <ol className={styles.list}>{getItems(headingsTree)}</ol> + </div> ); }; |
