Skip to content

Commit

Permalink
add component from PC
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruslan Bagautdinov committed Sep 2, 2024
1 parent 1e52ccd commit bf4594e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/components/MiniToc/MiniToc.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, {memo, useMemo} from 'react';
import block from 'bem-cn-lite';
import {Navigation} from '@gravity-ui/page-constructor';

import {useTranslation} from '../../hooks';
import {DocHeadingItem, Router} from '../../models';
Expand Down Expand Up @@ -49,6 +50,7 @@ const MiniToc = memo<MinitocProps>(({headings, router, headerHeight, onItemClick
return (
<nav className={b()} aria-label={t('article-navigation')}>
<h2 className={b('title')}>{t<string>('title')}:</h2>
<Navigation logo={{icon: ''}} data={{leftItems: []}} />
<Scrollspy
className={b('sections')}
currentClassName={b('section', {active: true})}
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"module": "ESNext",
"allowJs": false,
"importHelpers": true,
"resolveJsonModule": true,
// "resolveJsonModule": true,
"declaration": true,
"jsx": "react",
"target": "ESNext",
Expand Down

0 comments on commit bf4594e

Please sign in to comment.