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 11import { InternalHighlightProps } from "../types"
2- import { useThemeDictionary } from "./useThemeDictionary"
32import { useGetLineProps } from "./useGetLineProps"
43import { useGetTokenProps } from "./useGetTokenProps"
54import { useTokenize } from "./useTokenize"
5+ import themeToDict from "../utils/themeToDict"
66
77export const Highlight = ( {
88 children,
@@ -12,7 +12,7 @@ export const Highlight = ({
1212 prism,
1313} : InternalHighlightProps ) => {
1414 const language = _language . toLowerCase ( )
15- const themeDictionary = useThemeDictionary ( language , theme )
15+ const themeDictionary = themeToDict ( theme , language )
1616 const getLineProps = useGetLineProps ( themeDictionary )
1717 const getTokenProps = useGetTokenProps ( themeDictionary )
1818 const grammar = prism . languages [ language ]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments