Last active
February 8, 2016 01:27
-
-
Save schpet/eb8a84a1761508293930 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/containers/Root.js b/src/containers/Root.js | |
index fecb1e4..c2ad380 100644 | |
--- a/src/containers/Root.js | |
+++ b/src/containers/Root.js | |
@@ -21,12 +21,12 @@ export default class Root extends React.Component { | |
if (__DEBUG__) { | |
if (__DEBUG_NEW_WINDOW__) { | |
if (!window.devToolsExtension) { | |
- require('../redux/utils/createDevToolsWindow').default(this.props.store) | |
+ require('../redux/utils/createDevToolsWindow')(this.props.store) | |
} else { | |
window.devToolsExtension.open() | |
} | |
} else if (!window.devToolsExtension) { | |
- const DevTools = require('containers/DevTools').default | |
+ const DevTools = require('containers/DevTools') | |
return <DevTools /> | |
} | |
} | |
diff --git a/src/redux/configureStore.js b/src/redux/configureStore.js | |
index ee7c475..948f477 100644 | |
--- a/src/redux/configureStore.js | |
+++ b/src/redux/configureStore.js | |
@@ -12,7 +12,7 @@ export default function configureStore ({ initialState = {}, history }) { | |
if (__DEBUG__) { | |
const devTools = window.devToolsExtension | |
? window.devToolsExtension() | |
- : require('containers/DevTools').default.instrument() | |
+ : require('containers/DevTools').instrument() | |
middleware = compose(middleware, devTools) | |
} | |
@@ -22,7 +22,7 @@ export default function configureStore ({ initialState = {}, history }) { | |
if (module.hot) { | |
module.hot.accept('./rootReducer', () => { | |
- const nextRootReducer = require('./rootReducer').default | |
+ const nextRootReducer = require('./rootReducer') | |
store.replaceReducer(nextRootReducer) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment