aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/shared
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2017-08-29 11:38:53 +0200
committerStas Vilchik <stas.vilchik@sonarsource.com>2017-09-13 13:53:58 +0200
commit793e86fce66f356099792b7231c9a1d949ff875e (patch)
tree8bd08099539c3cb1ff159823ee1d1f74a5f2c979 /server/sonar-web/src/main/js/components/shared
parent736e89cc1629e1e52db00f67e4650f1b88695de9 (diff)
downloadsonarqube-793e86fce66f356099792b7231c9a1d949ff875e.tar.gz
sonarqube-793e86fce66f356099792b7231c9a1d949ff875e.zip
update prettier
Diffstat (limited to 'server/sonar-web/src/main/js/components/shared')
-rw-r--r--server/sonar-web/src/main/js/components/shared/Organization.js12
-rw-r--r--server/sonar-web/src/main/js/components/shared/TypeHelper.js5
2 files changed, 10 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/components/shared/Organization.js b/server/sonar-web/src/main/js/components/shared/Organization.js
index 3debbb2a878..1c3d5abf574 100644
--- a/server/sonar-web/src/main/js/components/shared/Organization.js
+++ b/server/sonar-web/src/main/js/components/shared/Organization.js
@@ -55,11 +55,13 @@ class Organization extends React.PureComponent {
return (
<span>
- {this.props.link
- ? <OrganizationLink className={this.props.linkClassName} organization={organization}>
- {organization.name}
- </OrganizationLink>
- : organization.name}
+ {this.props.link ? (
+ <OrganizationLink className={this.props.linkClassName} organization={organization}>
+ {organization.name}
+ </OrganizationLink>
+ ) : (
+ organization.name
+ )}
<span className="slash-separator" />
</span>
);
diff --git a/server/sonar-web/src/main/js/components/shared/TypeHelper.js b/server/sonar-web/src/main/js/components/shared/TypeHelper.js
index e734f22a8d5..9f423a5f489 100644
--- a/server/sonar-web/src/main/js/components/shared/TypeHelper.js
+++ b/server/sonar-web/src/main/js/components/shared/TypeHelper.js
@@ -28,10 +28,11 @@ type Props = {
};
*/
-const TypeHelper = (props /*: Props */) =>
+const TypeHelper = (props /*: Props */) => (
<span>
<IssueTypeIcon className="little-spacer-right" query={props.type} />
{translate('issue.type', props.type)}
- </span>;
+ </span>
+);
export default TypeHelper;