diff --git a/components/article/ArticlePage.tsx b/components/article/ArticlePage.tsx
index c1ac03e446..4b34b81442 100644
--- a/components/article/ArticlePage.tsx
+++ b/components/article/ArticlePage.tsx
@@ -1,9 +1,8 @@
import { useRouter } from 'next/router'
-import { useState } from 'react'
import cx from 'classnames'
import { ActionList, Heading } from '@primer/components'
-import { ChevronDownIcon, ZapIcon, InfoIcon, ShieldLockIcon } from '@primer/octicons-react'
+import { ZapIcon, InfoIcon, ShieldLockIcon } from '@primer/octicons-react'
import { Callout } from 'components/ui/Callout'
import { Link } from 'components/Link'
@@ -61,9 +60,8 @@ export const ArticlePage = () => {
} = useArticleContext()
const { t } = useTranslation('pages')
const currentPath = router.asPath.split('?')[0]
- const [isActive, setActive] = useState(-1)
- const renderTocItem = (item: MiniTocItem, index: number) => {
+ const renderTocItem = (item: MiniTocItem) => {
return (
- {item.items.map(renderTocItem)}
-
+ {item.items.map(renderTocItem)}
) : null}