fix linting errors in app and routes

This commit is contained in:
catarak 2016-06-27 17:19:45 -04:00
parent 684646c785
commit c9a3b5b6c8
2 changed files with 9 additions and 10 deletions

View file

@ -9,7 +9,7 @@ class App extends React.Component {
} }
componentDidMount() { componentDidMount() {
this.setState({ isMounted: true }); this.setState({ isMounted: true }); // eslint-disable-line no-did-mount-set-state
} }
render() { render() {

View file

@ -10,15 +10,14 @@ const checkAuth = (store) => {
store.dispatch(getUser()); store.dispatch(getUser());
}; };
const routes = (store) => { const routes = (store) =>
return ( (
<Route path="/" component={App}> <Route path="/" component={App}>
<IndexRoute component={IDEView} onEnter={checkAuth(store)} /> <IndexRoute component={IDEView} onEnter={checkAuth(store)} />
<Route path="/login" component={LoginView} /> <Route path="/login" component={LoginView} />
<Route path="/signup" component={SignupView} /> <Route path="/signup" component={SignupView} />
<Route path="/projects/:project_id" component={IDEView} /> <Route path="/projects/:project_id" component={IDEView} />
</Route> </Route>
); );
};
export default routes; export default routes;