File tree Expand file tree Collapse file tree 2 files changed +2
-26
lines changed
packages/prism-react-renderer/src/components Expand file tree Collapse file tree 2 files changed +2
-26
lines changed Original file line number Diff line number Diff line change 1
1
import { InternalHighlightProps } from "../types"
2
- import { useThemeDictionary } from "./useThemeDictionary"
3
2
import { useGetLineProps } from "./useGetLineProps"
4
3
import { useGetTokenProps } from "./useGetTokenProps"
5
4
import { useTokenize } from "./useTokenize"
5
+ import themeToDict from "../utils/themeToDict"
6
6
7
7
export const Highlight = ( {
8
8
children,
@@ -12,7 +12,7 @@ export const Highlight = ({
12
12
prism,
13
13
} : InternalHighlightProps ) => {
14
14
const language = _language . toLowerCase ( )
15
- const themeDictionary = useThemeDictionary ( language , theme )
15
+ const themeDictionary = themeToDict ( theme , language )
16
16
const getLineProps = useGetLineProps ( themeDictionary )
17
17
const getTokenProps = useGetTokenProps ( themeDictionary )
18
18
const grammar = prism . languages [ language ]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments