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() {
this.setState({ isMounted: true });
this.setState({ isMounted: true }); // eslint-disable-line no-did-mount-set-state
}
render() {

View file

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