Skip to content

Commit cd2b429

Browse files
Laurie BarthLaurie Barth
authored andcommitted
missing line from merge
1 parent 1dd11d2 commit cd2b429

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/gatsby-plugin-theme-ui/gatsby-node.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
const prismPresetDictionary = require(`./utils/preset-dictionary`)
22

33
exports.onPreInit = ({ reporter }, options) => {
4+
let { preset, prismPreset } = options
5+
46
if (typeof preset === 'string') {
57
try {
68
options.preset = require(preset)
@@ -29,8 +31,8 @@ exports.createSchemaCustomization = ({ actions }) => {
2931

3032
createTypes(`
3133
type ThemeUiConfig implements Node {
32-
prismPreset: JSON,
3334
preset: JSON,
35+
prismPreset: JSON,
3436
}
3537
`)
3638
}

packages/gatsby-plugin-theme-ui/src/hooks/configOptions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ const useThemeUiConfig = () => {
44
const data = useStaticQuery(graphql`
55
query {
66
themeUiConfig(id: { eq: "gatsby-plugin-theme-ui-config" }) {
7-
prismPreset
87
preset
8+
prismPreset
99
}
1010
}
1111
`)

0 commit comments

Comments
 (0)