summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-core/src/connect.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook-core/src/connect.js')
-rw-r--r--packages/gitbook-core/src/connect.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/gitbook-core/src/connect.js b/packages/gitbook-core/src/connect.js
index 2bd9cb9..e30eb22 100644
--- a/packages/gitbook-core/src/connect.js
+++ b/packages/gitbook-core/src/connect.js
@@ -7,7 +7,7 @@ const ReactRedux = require('react-redux');
* @return {ReactComponent}
*/
function connect(Component, mapStateToProps) {
- return ReactRedux.connect(Component, mapStateToProps);
+ return ReactRedux.connect(mapStateToProps)(Component);
}
module.exports = connect;