Skip to content

Commit 30ab5f4

Browse files
committed
refactor: review
1 parent 67dd1c9 commit 30ab5f4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/ui-components/src/Common/TableOfContents

packages/ui-components/src/Common/TableOfContents/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import classNames from 'classnames';
22

3-
import { LinkLike } from '#ui/types.js';
3+
import { LinkLike } from '#ui/types';
44

55
import type { Heading } from '@vcarl/remark-headings';
66
import type { FC } from 'react';
@@ -31,7 +31,7 @@ const TableOfContents: FC<TableOfContentsProps> = ({
3131
{filteredHeadings.map((head, index) => (
3232
<li key={head.data?.id ?? index}>
3333
<Component
34-
href={head.data?.id && `#${head.data?.id}`}
34+
href={head.data?.id && `#${head.data.id}`}
3535
className={classNames(
3636
styles.link,
3737
head.depth === 3 && styles.depthThree,

0 commit comments

Comments
 (0)