aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/about/components
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2018-08-10 16:02:22 +0200
committerSonarTech <sonartech@sonarsource.com>2018-08-10 20:21:32 +0200
commitd3530ff0004d44a2c4e9140ff9cc7774b8bc38a4 (patch)
tree03ad7aa9ab7d9bcfb0f5b354149da9c014052010 /server/sonar-web/src/main/js/apps/about/components
parent29b5f4a0ebf686f9dee7f1d6c6eab65fe381654d (diff)
downloadsonarqube-d3530ff0004d44a2c4e9140ff9cc7774b8bc38a4.tar.gz
sonarqube-d3530ff0004d44a2c4e9140ff9cc7774b8bc38a4.zip
update main dependencies & fix autofixable eslint warnings (#601)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/about/components')
-rw-r--r--server/sonar-web/src/main/js/apps/about/components/AboutApp.js5
-rw-r--r--server/sonar-web/src/main/js/apps/about/components/AboutProjects.js2
-rw-r--r--server/sonar-web/src/main/js/apps/about/components/AboutScanners.js6
-rw-r--r--server/sonar-web/src/main/js/apps/about/components/EntryIssueTypes.js12
4 files changed, 14 insertions, 11 deletions
diff --git a/server/sonar-web/src/main/js/apps/about/components/AboutApp.js b/server/sonar-web/src/main/js/apps/about/components/AboutApp.js
index 5221f845d5d..c1d319015f1 100644
--- a/server/sonar-web/src/main/js/apps/about/components/AboutApp.js
+++ b/server/sonar-web/src/main/js/apps/about/components/AboutApp.js
@@ -219,4 +219,7 @@ const mapStateToProps = state => ({
const mapDispatchToProps = { fetchAboutPageSettings };
-export default connect(mapStateToProps, mapDispatchToProps)(AboutApp);
+export default connect(
+ mapStateToProps,
+ mapDispatchToProps
+)(AboutApp);
diff --git a/server/sonar-web/src/main/js/apps/about/components/AboutProjects.js b/server/sonar-web/src/main/js/apps/about/components/AboutProjects.js
index 2d3a26dd89b..ded5a77736f 100644
--- a/server/sonar-web/src/main/js/apps/about/components/AboutProjects.js
+++ b/server/sonar-web/src/main/js/apps/about/components/AboutProjects.js
@@ -37,7 +37,7 @@ export default function AboutProjects({ count, loading } /*: Props */) {
{!loading && (
<div>
<div>
- <Link to="/projects" className="about-page-projects-link">
+ <Link className="about-page-projects-link" to="/projects">
{formatMeasure(count, 'INT')}
</Link>
</div>
diff --git a/server/sonar-web/src/main/js/apps/about/components/AboutScanners.js b/server/sonar-web/src/main/js/apps/about/components/AboutScanners.js
index 9d79e0c4b0f..42ad663a7ad 100644
--- a/server/sonar-web/src/main/js/apps/about/components/AboutScanners.js
+++ b/server/sonar-web/src/main/js/apps/about/components/AboutScanners.js
@@ -55,11 +55,11 @@ export default function AboutScanners() {
<p className="about-page-text">{translate('about_page.scanners.text')}</p>
<div className="about-page-analyzers">
{scanners.map(scanner => (
- <a key={scanner.key} className="about-page-analyzer-box" href={scanner.link}>
+ <a className="about-page-analyzer-box" href={scanner.link} key={scanner.key}>
<img
- src={`${window.baseUrl}/images/scanner-logos/${scanner.key}.svg`}
- height={60}
alt={translate('about_page.scanners', scanner.key)}
+ height={60}
+ src={`${window.baseUrl}/images/scanner-logos/${scanner.key}.svg`}
/>
</a>
))}
diff --git a/server/sonar-web/src/main/js/apps/about/components/EntryIssueTypes.js b/server/sonar-web/src/main/js/apps/about/components/EntryIssueTypes.js
index 31e5fb7a3c4..499df6ce3a2 100644
--- a/server/sonar-web/src/main/js/apps/about/components/EntryIssueTypes.js
+++ b/server/sonar-web/src/main/js/apps/about/components/EntryIssueTypes.js
@@ -48,8 +48,8 @@ export default function EntryIssueTypes(
<tr>
<td className="about-page-issue-type-number">
<Link
- to={getIssuesUrl({ resolved: 'false', types: 'BUG', s: 'CREATION_DATE' })}
- className="about-page-issue-type-link">
+ className="about-page-issue-type-link"
+ to={getIssuesUrl({ resolved: 'false', types: 'BUG', s: 'CREATION_DATE' })}>
{formatMeasure(bugs, 'SHORT_INT')}
</Link>
</td>
@@ -63,12 +63,12 @@ export default function EntryIssueTypes(
<tr>
<td className="about-page-issue-type-number">
<Link
+ className="about-page-issue-type-link"
to={getIssuesUrl({
resolved: 'false',
types: 'VULNERABILITY',
s: 'CREATION_DATE'
- })}
- className="about-page-issue-type-link">
+ })}>
{formatMeasure(vulnerabilities, 'SHORT_INT')}
</Link>
</td>
@@ -82,8 +82,8 @@ export default function EntryIssueTypes(
<tr>
<td className="about-page-issue-type-number">
<Link
- to={getIssuesUrl({ resolved: 'false', types: 'CODE_SMELL', s: 'CREATION_DATE' })}
- className="about-page-issue-type-link">
+ className="about-page-issue-type-link"
+ to={getIssuesUrl({ resolved: 'false', types: 'CODE_SMELL', s: 'CREATION_DATE' })}>
{formatMeasure(codeSmells, 'SHORT_INT')}
</Link>
</td>