File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
packages/react-notion-x/src/components Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import * as React from 'react'
2
2
import throttle from 'lodash.throttle'
3
3
import { TableOfContentsEntry , uuidToId } from 'notion-utils'
4
4
5
- import { useNotionContext } from '../context'
6
5
import { cs } from '../utils'
7
6
8
7
export const PageAside : React . FC < {
@@ -22,8 +21,6 @@ export const PageAside: React.FC<{
22
21
hasAside,
23
22
className
24
23
} ) => {
25
- const { darkMode } = useNotionContext ( )
26
-
27
24
const throttleMs = 100
28
25
const actionSectionScrollSpy = React . useMemo (
29
26
( ) =>
@@ -92,12 +89,7 @@ export const PageAside: React.FC<{
92
89
Table of Contents
93
90
</ div >
94
91
95
- < nav
96
- className = { cs (
97
- 'notion-table-of-contents' ,
98
- ! darkMode && 'notion-gray'
99
- ) }
100
- >
92
+ < nav className = 'notion-table-of-contents' >
101
93
{ toc . map ( ( tocItem ) => {
102
94
const id = uuidToId ( tocItem . id )
103
95
You can’t perform that action at this time.
0 commit comments