aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/quality-profiles/components
diff options
context:
space:
mode:
authorStas Vilchik <stas-vilchik@users.noreply.github.com>2017-03-31 13:54:46 +0200
committerGitHub <noreply@github.com>2017-03-31 13:54:46 +0200
commitfe716c6dc43d4d7acb437136b1c87902e8ff0bc4 (patch)
tree6b8a18d7a8f76de1fd34be3235d1639477b75d71 /server/sonar-web/src/main/js/apps/quality-profiles/components
parente660d605a27992d82d901b8fe0b8938da7afb270 (diff)
downloadsonarqube-fe716c6dc43d4d7acb437136b1c87902e8ff0bc4.tar.gz
sonarqube-fe716c6dc43d4d7acb437136b1c87902e8ff0bc4.zip
re-format js code (#1877)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-profiles/components')
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileActions.js6
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileLink.js3
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/ProfileContainer-test.js9
3 files changed, 6 insertions, 12 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileActions.js b/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileActions.js
index 7c11c4a88f5..1616c0936c8 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileActions.js
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileActions.js
@@ -110,8 +110,7 @@ export default class ProfileActions extends React.Component {
<li>
<Link
to={{ pathname: '/profiles/compare', query: { key: profile.key } }}
- id="quality-profile-compare"
- >
+ id="quality-profile-compare">
{translate('compare')}
</Link>
</li>
@@ -133,8 +132,7 @@ export default class ProfileActions extends React.Component {
<a
id="quality-profile-set-as-default"
href="#"
- onClick={this.handleSetDefaultClick.bind(this)}
- >
+ onClick={this.handleSetDefaultClick.bind(this)}>
{translate('set_as_default')}
</a>
</li>}
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileLink.js b/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileLink.js
index 6fbb379a887..e6d332735b7 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileLink.js
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/components/ProfileLink.js
@@ -32,8 +32,7 @@ export default class ProfileLink extends React.Component {
<Link
to={{ pathname: '/profiles/show', query }}
activeClassName="link-no-underline"
- {...other}
- >
+ {...other}>
{children}
</Link>
);
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/ProfileContainer-test.js b/server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/ProfileContainer-test.js
index da6f052f635..c4073232a95 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/ProfileContainer-test.js
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/ProfileContainer-test.js
@@ -34,8 +34,7 @@ it('should render ProfileHeader', () => {
location={{ query: { key: 'profile1' } }}
profiles={profiles}
canAdmin={false}
- updateProfiles={updateProfiles}
- >
+ updateProfiles={updateProfiles}>
<div />
</ProfileContainer>
);
@@ -53,8 +52,7 @@ it('should render ProfileNotFound', () => {
location={{ query: { key: 'random' } }}
profiles={profiles}
canAdmin={false}
- updateProfiles={() => true}
- >
+ updateProfiles={() => true}>
<div />
</ProfileContainer>
);
@@ -69,8 +67,7 @@ it('should render Helmet', () => {
location={{ query: { key: 'profile1' } }}
profiles={profiles}
canAdmin={false}
- updateProfiles={updateProfiles}
- >
+ updateProfiles={updateProfiles}>
<div />
</ProfileContainer>
);