aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/ui/GenericAvatar.tsx
diff options
context:
space:
mode:
authorPhilippe Perrin <philippe.perrin@sonarsource.com>2022-11-02 11:08:39 +0100
committersonartech <sonartech@sonarsource.com>2022-11-02 20:03:01 +0000
commit2ab6fc273ecbf405f7c126fab11ddc0b9bf516da (patch)
treea6e005b4f57fb488d3e551b7df52399e69b0674c /server/sonar-web/src/main/js/components/ui/GenericAvatar.tsx
parent60e4b88e4567c1af3051b6cdc4c8858f8b0fca21 (diff)
downloadsonarqube-2ab6fc273ecbf405f7c126fab11ddc0b9bf516da.tar.gz
sonarqube-2ab6fc273ecbf405f7c126fab11ddc0b9bf516da.zip
SONAR-13368 Bump to prettier@2.7.1
Diffstat (limited to 'server/sonar-web/src/main/js/components/ui/GenericAvatar.tsx')
-rw-r--r--server/sonar-web/src/main/js/components/ui/GenericAvatar.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/components/ui/GenericAvatar.tsx b/server/sonar-web/src/main/js/components/ui/GenericAvatar.tsx
index 73210e0d94e..0a3a4496836 100644
--- a/server/sonar-web/src/main/js/components/ui/GenericAvatar.tsx
+++ b/server/sonar-web/src/main/js/components/ui/GenericAvatar.tsx
@@ -32,7 +32,7 @@ export default function GenericAvatar({ className, name, round, size }: Props) {
const color = stringToColor(name);
let text = '';
- const words = name.split(/\s+/).filter(word => word.length > 0);
+ const words = name.split(/\s+/).filter((word) => word.length > 0);
if (words.length >= 2) {
text = words[0][0] + words[1][0];
} else if (name.length > 0) {
@@ -53,8 +53,9 @@ export default function GenericAvatar({ className, name, round, size }: Props) {
lineHeight: `${size}px`,
textAlign: 'center',
verticalAlign: 'top',
- width: size
- }}>
+ width: size,
+ }}
+ >
{text.toUpperCase()}
</div>
);