aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/ui/VulnerabilityIcon.js
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-05-22 17:14:37 +0200
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-06-09 08:26:48 +0200
commit1689d1f1ca71dfac66682fd87b4ce56ad58dfce0 (patch)
treea0af224d5d10ee2f62b76a190c220ba735667940 /server/sonar-web/src/main/js/components/ui/VulnerabilityIcon.js
parentc26d1c37fdcbc8cbdeb0390648c071297d72d027 (diff)
downloadsonarqube-1689d1f1ca71dfac66682fd87b4ce56ad58dfce0.tar.gz
sonarqube-1689d1f1ca71dfac66682fd87b4ce56ad58dfce0.zip
SONAR-9245 Create the leak view on projects page
Diffstat (limited to 'server/sonar-web/src/main/js/components/ui/VulnerabilityIcon.js')
-rw-r--r--server/sonar-web/src/main/js/components/ui/VulnerabilityIcon.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/components/ui/VulnerabilityIcon.js b/server/sonar-web/src/main/js/components/ui/VulnerabilityIcon.js
index b3987cb4432..248eae3d844 100644
--- a/server/sonar-web/src/main/js/components/ui/VulnerabilityIcon.js
+++ b/server/sonar-web/src/main/js/components/ui/VulnerabilityIcon.js
@@ -20,10 +20,15 @@
// @flow
import React from 'react';
-export default function VulnerabilityIcon() {
+export default function VulnerabilityIcon({ className }: { className?: string }) {
/* eslint-disable max-len */
return (
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
+ <svg
+ className={className}
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 16 16"
+ width="16"
+ height="16">
<path
style={{ fill: 'currentColor' }}
d="M10.8 5H6V3.9a2.28 2.28 0 0 1 2-2.5 2.22 2.22 0 0 1 1.8 1.2.48.48 0 0 0 .7.2.48.48 0 0 0 .2-.7A3 3 0 0 0 8 .4a3.34 3.34 0 0 0-3 3.5v1.2a2.16 2.16 0 0 0-2 2.1v4.4a2.22 2.22 0 0 0 2.2 2.2h5.6a2.22 2.22 0 0 0 2.2-2.2V7.2A2.22 2.22 0 0 0 10.8 5zm-2.2 5.5v1.2H7.4v-1.2a1.66 1.66 0 0 1-1.1-1.6A1.75 1.75 0 0 1 8 7.2a1.71 1.71 0 0 1 .6 3.3z"