fix linting errors in app and routes
This commit is contained in:
parent
684646c785
commit
c9a3b5b6c8
2 changed files with 9 additions and 10 deletions
|
@ -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() {
|
||||
|
|
|
@ -10,8 +10,8 @@ const checkAuth = (store) => {
|
|||
store.dispatch(getUser());
|
||||
};
|
||||
|
||||
const routes = (store) => {
|
||||
return (
|
||||
const routes = (store) =>
|
||||
(
|
||||
<Route path="/" component={App}>
|
||||
<IndexRoute component={IDEView} onEnter={checkAuth(store)} />
|
||||
<Route path="/login" component={LoginView} />
|
||||
|
@ -19,6 +19,5 @@ const routes = (store) => {
|
|||
<Route path="/projects/:project_id" component={IDEView} />
|
||||
</Route>
|
||||
);
|
||||
};
|
||||
|
||||
export default routes;
|
||||
|
|
Loading…
Reference in a new issue