Skip to content

Commit 5989cdd

Browse files
🍌
1 parent ce01bad commit 5989cdd

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

packages/react-notion-x/src/components/page-aside.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import * as React from 'react'
22
import throttle from 'lodash.throttle'
33
import { TableOfContentsEntry, uuidToId } from 'notion-utils'
44

5-
import { useNotionContext } from '../context'
65
import { cs } from '../utils'
76

87
export const PageAside: React.FC<{
@@ -22,8 +21,6 @@ export const PageAside: React.FC<{
2221
hasAside,
2322
className
2423
}) => {
25-
const { darkMode } = useNotionContext()
26-
2724
const throttleMs = 100
2825
const actionSectionScrollSpy = React.useMemo(
2926
() =>
@@ -92,12 +89,7 @@ export const PageAside: React.FC<{
9289
Table of Contents
9390
</div>
9491

95-
<nav
96-
className={cs(
97-
'notion-table-of-contents',
98-
!darkMode && 'notion-gray'
99-
)}
100-
>
92+
<nav className='notion-table-of-contents'>
10193
{toc.map((tocItem) => {
10294
const id = uuidToId(tocItem.id)
10395

0 commit comments

Comments
 (0)