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-search/src | |
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-search/src')
-rw-r--r-- | packages/gitbook-plugin-search/src/index.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/gitbook-plugin-search/src/index.js b/packages/gitbook-plugin-search/src/index.js index c3b0253..f08d5d6 100644 --- a/packages/gitbook-plugin-search/src/index.js +++ b/packages/gitbook-plugin-search/src/index.js @@ -3,15 +3,15 @@ const GitBook = require('gitbook-core'); const SearchInput = require('./components/Input'); const SearchResults = require('./components/Results'); const reducers = require('./reducers'); -const search = require('./actions/search'); +const Search = require('./actions/search'); module.exports = GitBook.createPlugin({ - init: (dispatch, getState) => { - dispatch(GitBook.registerComponent(SearchInput, { role: 'search:input' })); - dispatch(GitBook.registerComponent(SearchResults, { role: 'search:results' })); + init: (dispatch, getState, { Components }) => { + dispatch(Components.registerComponent(SearchInput, { role: 'search:input' })); + dispatch(Components.registerComponent(SearchResults, { role: 'search:results' })); }, reduce: reducers, actions: { - search + Search } }); |