diff options
author | Noah Loomans <noahloomans@gmail.com> | 2018-03-24 15:57:52 +0100 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2018-03-24 15:57:52 +0100 |
commit | f8686cb6d0fd155574e825a1784372d843ab1fe3 (patch) | |
tree | 4b6e989daceb2b2d35c1e54a145b733520be9ecb /src | |
parent | 94e1db8b37a3a59e785724e5b9eda6887c1fb646 (diff) |
Remove redux-logger
Diffstat (limited to 'src')
-rw-r--r-- | src/client/react/index.js | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/client/react/index.js b/src/client/react/index.js index 2443ced..5fa7d0d 100644 --- a/src/client/react/index.js +++ b/src/client/react/index.js @@ -22,9 +22,8 @@ import React from 'react'; import ReactDOM from 'react-dom'; import moment from 'moment'; -import { createStore, applyMiddleware, compose } from 'redux'; +import { createStore } from 'redux'; import { Provider } from 'react-redux'; -import logger from 'redux-logger'; import { BrowserRouter as Router, @@ -39,14 +38,18 @@ import User from './components/page/User'; import './index.scss'; +// Set the locale for moment.js to dutch. This ensures that the correct week +// number logic is used. moment.locale('nl'); -// eslint-disable-next-line no-underscore-dangle -const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; +/* eslint-disable no-underscore-dangle */ const store = createStore( reducer, - composeEnhancers(applyMiddleware(logger)), + // Redux devtools extension + // https://github.com/zalmoxisus/redux-devtools-extension + window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(), ); +/* eslint-enable no-underscore-dangle */ ReactDOM.render( <Provider store={store}> @@ -58,7 +61,7 @@ ReactDOM.render( </Switch> </Router> </Provider>, - document.getElementById('root'), + document.querySelector('#root'), ); // We only want to focus the input on page load. NOT on a in-javascript |