summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-plugin-theme-default/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook-plugin-theme-default/src/index.js')
-rw-r--r--packages/gitbook-plugin-theme-default/src/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/gitbook-plugin-theme-default/src/index.js b/packages/gitbook-plugin-theme-default/src/index.js
index 9d328f2..2f1a336 100644
--- a/packages/gitbook-plugin-theme-default/src/index.js
+++ b/packages/gitbook-plugin-theme-default/src/index.js
@@ -49,8 +49,8 @@ ThemeBody = GitBook.connect(ThemeBody, ({page, summary, sidebar}) => {
});
module.exports = GitBook.createPlugin({
- init: (dispatch, state) => {
- dispatch(GitBook.registerComponent(ThemeBody, { role: 'Body' }));
+ init: (dispatch, state, { Components }) => {
+ dispatch(Components.registerComponent(ThemeBody, { role: 'Body' }));
},
reduce: reduceState
});