summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-core/src/lib/renderWithContext.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook-core/src/lib/renderWithContext.js')
-rw-r--r--packages/gitbook-core/src/lib/renderWithContext.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/gitbook-core/src/lib/renderWithContext.js b/packages/gitbook-core/src/lib/renderWithContext.js
index f9a093c..c84c221 100644
--- a/packages/gitbook-core/src/lib/renderWithContext.js
+++ b/packages/gitbook-core/src/lib/renderWithContext.js
@@ -4,7 +4,7 @@ const { InjectedComponent } = require('../components/InjectedComponent');
const PJAXWrapper = require('../components/PJAXWrapper');
const I18nProvider = require('../components/I18nProvider');
const ContextProvider = require('../components/ContextProvider');
-const Navigation = require('../actions/navigation');
+const History = require('../actions/history');
const contextShape = require('../shapes/context');
const GitBookApplication = React.createClass({
@@ -15,12 +15,12 @@ const GitBookApplication = React.createClass({
componentDidMount() {
const { context } = this.props;
- context.dispatch(Navigation.activate());
+ context.dispatch(History.activate());
},
componentWillUnmount() {
const { context } = this.props;
- context.dispatch(Navigation.deactivate());
+ context.dispatch(History.deactivate());
},
render() {