We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67dd1c9 commit 30ab5f4Copy full SHA for 30ab5f4
1 file changed
packages/ui-components/src/Common/TableOfContents/index.tsx
@@ -1,6 +1,6 @@
1
import classNames from 'classnames';
2
3
-import { LinkLike } from '#ui/types.js';
+import { LinkLike } from '#ui/types';
4
5
import type { Heading } from '@vcarl/remark-headings';
6
import type { FC } from 'react';
@@ -31,7 +31,7 @@ const TableOfContents: FC<TableOfContentsProps> = ({
31
{filteredHeadings.map((head, index) => (
32
<li key={head.data?.id ?? index}>
33
<Component
34
- href={head.data?.id && `#${head.data?.id}`}
+ href={head.data?.id && `#${head.data.id}`}
35
className={classNames(
36
styles.link,
37
head.depth === 3 && styles.depthThree,
0 commit comments