File tree 1 file changed +2
-2
lines changed
packages/docusaurus-theme-redoc/src/theme/Redoc
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
import React , { useMemo } from 'react' ;
2
2
import { usePluginData } from '@docusaurus/useGlobalData' ;
3
- import useThemeContext from '@theme/hooks/useThemeContext ' ;
3
+ import { useColorMode } from '@docusaurus/theme-common ' ;
4
4
import { Redoc as RedocComponent , RedocStandalone , AppStore } from 'redoc' ;
5
5
import { RedocProps as Props , GlobalData } from '../../types/common' ;
6
6
import './styles.css' ;
@@ -12,7 +12,7 @@ import './styles.css';
12
12
* Released under the MIT License
13
13
*/
14
14
function Redoc ( props : Props ) : JSX . Element {
15
- const { isDarkTheme } = useThemeContext ( ) ;
15
+ const { isDarkTheme } = useColorMode ( ) ;
16
16
const { lightTheme, darkTheme, redocOptions } = usePluginData < GlobalData > (
17
17
'docusaurus-theme-redoc' ,
18
18
) ;
You can’t perform that action at this time.
0 commit comments