diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-10-01 14:14:30 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-10-01 14:14:30 +0200 |
commit | da83d9e91d419e1c843e3017098d25dbde22b500 (patch) | |
tree | 0cf3860171062794ef66a292f46fdd62e66dc780 /packages/gitbook-plugin-theme-default/src/index.js | |
parent | 2cf507a807b1070a445cadb28317a41385fbe50b (diff) | |
download | gitbook-da83d9e91d419e1c843e3017098d25dbde22b500.zip gitbook-da83d9e91d419e1c843e3017098d25dbde22b500.tar.gz gitbook-da83d9e91d419e1c843e3017098d25dbde22b500.tar.bz2 |
Change api for registering components
Diffstat (limited to 'packages/gitbook-plugin-theme-default/src/index.js')
-rw-r--r-- | packages/gitbook-plugin-theme-default/src/index.js | 4 |
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 }); |