File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
packages/gatsby-plugin-theme-ui Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -29,21 +29,19 @@ exports.createSchemaCustomization = ({ actions }) => {
29
29
type ThemeUiConfig implements Node {
30
30
themeModule: JSON,
31
31
themeModulePath: JSON,
32
- moduleExportName: String,
33
32
}
34
33
` )
35
34
}
36
35
37
36
exports . sourceNodes = (
38
37
{ actions, createContentDigest } ,
39
- { moduleExportName = 'default' , themeModule, themeModulePath}
38
+ { themeModule, themeModulePath}
40
39
) => {
41
40
const { createNode } = actions
42
41
43
42
const themeUiConfig = {
44
43
themeModule,
45
44
themeModulePath,
46
- moduleExportName,
47
45
}
48
46
49
47
createNode ( {
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ const useThemeUiConfig = () => {
6
6
themeUiConfig(id: { eq: "gatsby-plugin-theme-ui-config" }) {
7
7
themeModule
8
8
themeModulePath
9
- moduleExportName
10
9
}
11
10
}
12
11
` )
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import useThemeUiConfig from './hooks/configOptions'
11
11
12
12
const Root = ( { children} ) => {
13
13
const themeUiConfig = useThemeUiConfig ( )
14
- const { themeModule, themeModulePath, moduleExportName } = themeUiConfig
14
+ const { themeModule, themeModulePath} = themeUiConfig
15
15
16
16
let themeWrapper
17
17
if ( themeModule ) {
@@ -22,8 +22,8 @@ const Root = ({children}) => {
22
22
themeWrapper = themeModulePath
23
23
}
24
24
25
- if ( themeWrapper && ( moduleExportName in themeWrapper ) ) {
26
- themeWrapper = themeWrapper [ moduleExportName ]
25
+ if ( themeWrapper && ( 'default' in themeWrapper ) ) {
26
+ themeWrapper = themeWrapper . default
27
27
}
28
28
29
29
themeWrapper = merge ( themeWrapper , {
You can’t perform that action at this time.
0 commit comments