diff options
Diffstat (limited to 'server/sonar-web/src/main/js/app/components/Landing.js')
-rw-r--r-- | server/sonar-web/src/main/js/app/components/Landing.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/app/components/Landing.js b/server/sonar-web/src/main/js/app/components/Landing.js index 7b4ba1721dc..5239df6f93b 100644 --- a/server/sonar-web/src/main/js/app/components/Landing.js +++ b/server/sonar-web/src/main/js/app/components/Landing.js @@ -25,10 +25,13 @@ import { getCurrentUser } from '../../store/rootReducer'; class Landing extends React.Component { static propTypes = { - currentUser: React.PropTypes.oneOfType([React.PropTypes.bool, React.PropTypes.object]).isRequired + currentUser: React.PropTypes.oneOfType([ + React.PropTypes.bool, + React.PropTypes.object + ]).isRequired }; - componentDidMount () { + componentDidMount() { const { currentUser, router } = this.props; if (currentUser.isLoggedIn) { router.replace('/projects'); @@ -37,7 +40,7 @@ class Landing extends React.Component { } } - render () { + render() { return null; } } |