diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-09-05 14:02:49 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-09-05 14:02:49 +0200 |
commit | ff31514c669a7c9b04ee69c447dcf9e2da39f3da (patch) | |
tree | b81b9bc9b12356dc1d9f7d8f8208be5631cc3d44 /packages/gitbook-core/src/components/InjectedComponent.js | |
parent | 3f1ec310ca0c634e1f63a1e00e485ea93916e810 (diff) | |
download | gitbook-ff31514c669a7c9b04ee69c447dcf9e2da39f3da.zip gitbook-ff31514c669a7c9b04ee69c447dcf9e2da39f3da.tar.gz gitbook-ff31514c669a7c9b04ee69c447dcf9e2da39f3da.tar.bz2 |
Start bootstraping rendering with react in GitBook
Diffstat (limited to 'packages/gitbook-core/src/components/InjectedComponent.js')
-rw-r--r-- | packages/gitbook-core/src/components/InjectedComponent.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/gitbook-core/src/components/InjectedComponent.js b/packages/gitbook-core/src/components/InjectedComponent.js index f8e5b04..39b48b2 100644 --- a/packages/gitbook-core/src/components/InjectedComponent.js +++ b/packages/gitbook-core/src/components/InjectedComponent.js @@ -1,5 +1,5 @@ const React = require('react'); -const connect = require('./connect'); +const ReactRedux = require('react-redux'); const UnsafeComponent = require('./UnsafeComponent'); const { findMatchingComponents } = require('../actions/components'); @@ -65,11 +65,11 @@ function mapStateToProps(state, props) { } module.exports = { - InjectedComponent: connect(InjectedComponentSet, (state, props) => { + InjectedComponent: ReactRedux.connect(InjectedComponentSet, (state, props) => { const result = mapStateToProps(state, props); result.components = result.components.slice(0, 1); result.withContainer = false; return result; }), - InjectedComponentSet: connect(InjectedComponentSet, mapStateToProps) + InjectedComponentSet: ReactRedux.connect(InjectedComponentSet, mapStateToProps) }; |