We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f52161d commit 78dd034Copy full SHA for 78dd034
packages/prism-react-renderer/src/components/useGetLineProps.ts
@@ -11,8 +11,8 @@ export const useGetLineProps = (themeDictionary?: ThemeDict) =>
11
className: clsx("token-line", className),
12
}
13
14
- if (themeDictionary != null) output.style = themeDictionary.plain
15
- if (style != null) output.style = { ...(output.style || {}), ...style }
+ if (themeDictionary) output.style = themeDictionary.plain
+ if (style) output.style = { ...(output.style || {}), ...style }
16
17
return output
18
},
0 commit comments