summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-plugin-hints/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook-plugin-hints/src')
-rw-r--r--packages/gitbook-plugin-hints/src/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/gitbook-plugin-hints/src/index.js b/packages/gitbook-plugin-hints/src/index.js
index 0d1c152..2356995 100644
--- a/packages/gitbook-plugin-hints/src/index.js
+++ b/packages/gitbook-plugin-hints/src/index.js
@@ -34,7 +34,7 @@ const HintAlert = React.createClass({
});
module.exports = GitBook.createPlugin({
- init: (dispatch, getState) => {
- dispatch(GitBook.registerComponent(HintAlert, { role: 'block:hint' }));
+ init: (dispatch, getState, { Components }) => {
+ dispatch(Components.registerComponent(HintAlert, { role: 'block:hint' }));
}
});