aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/app/components/nav/global/GlobalNavUser.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/app/components/nav/global/GlobalNavUser.js')
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/global/GlobalNavUser.js28
1 files changed, 8 insertions, 20 deletions
diff --git a/server/sonar-web/src/main/js/app/components/nav/global/GlobalNavUser.js b/server/sonar-web/src/main/js/app/components/nav/global/GlobalNavUser.js
index a4e39e09398..eadbc23ff02 100644
--- a/server/sonar-web/src/main/js/app/components/nav/global/GlobalNavUser.js
+++ b/server/sonar-web/src/main/js/app/components/nav/global/GlobalNavUser.js
@@ -40,8 +40,7 @@ type Props = {
fetchMyOrganizations: () => Promise<*>,
location: Object,
organizations: Array<{ key: string, name: string }>,
- router: { push: string => void },
- sonarCloud: boolean
+ router: { push: string => void }
};
type State = {
@@ -157,24 +156,13 @@ export default class GlobalNavUser extends React.PureComponent {
}
renderAnonymous() {
- return this.props.sonarCloud
- ? <li>
- <a href="/sessions/init/github">
- <img
- alt="GitHub"
- className="navbar-global-login-github"
- width="14"
- height="14"
- src="/static/authgithub/github.svg"
- />
- {translate('layout.login')}
- </a>
- </li>
- : <li>
- <a onClick={this.handleLogin} href="#">
- {translate('layout.login')}
- </a>
- </li>;
+ return (
+ <li>
+ <a onClick={this.handleLogin} href="#">
+ {translate('layout.login')}
+ </a>
+ </li>
+ );
}
render() {