mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-04 03:42:34 +02:00
test: improve test coverage; reorder theme-common files (#6956)
* test: improve test coverage; reorder theme-common files * no need for this
This commit is contained in:
parent
0a5354dc32
commit
948271a0ff
38 changed files with 555 additions and 317 deletions
|
@ -6,10 +6,10 @@
|
|||
*/
|
||||
|
||||
import defaultTheme from 'prism-react-renderer/themes/palenight';
|
||||
import {useColorMode} from '../utils/colorModeUtils';
|
||||
import {useColorMode} from '../contexts/colorMode';
|
||||
import {useThemeConfig} from '../utils/useThemeConfig';
|
||||
|
||||
export default function usePrismTheme(): typeof defaultTheme {
|
||||
export function usePrismTheme(): typeof defaultTheme {
|
||||
const {prism} = useThemeConfig();
|
||||
const {colorMode} = useColorMode();
|
||||
const lightModeTheme = prism.theme || defaultTheme;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue