diff options
author | Kevin Silva <kevin.silva@sonarsource.com> | 2023-09-18 11:41:23 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-09-19 20:02:46 +0000 |
commit | c13c409e59105e0187da35c14e7ba1d2e76a39a7 (patch) | |
tree | f4c99499f1380e7f350cbec5d98ef6f6ea72b351 /server/sonar-web/design-system/src/components/avatar | |
parent | 1fc0c6cbdf4b31d8d62e91545bb6a5b3660f3949 (diff) | |
download | sonarqube-c13c409e59105e0187da35c14e7ba1d2e76a39a7.tar.gz sonarqube-c13c409e59105e0187da35c14e7ba1d2e76a39a7.zip |
SONAR-20337 Validation fixes for QG
Diffstat (limited to 'server/sonar-web/design-system/src/components/avatar')
-rw-r--r-- | server/sonar-web/design-system/src/components/avatar/GenericAvatar.tsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/server/sonar-web/design-system/src/components/avatar/GenericAvatar.tsx b/server/sonar-web/design-system/src/components/avatar/GenericAvatar.tsx index 38f4fbef6d9..2590ccbefdb 100644 --- a/server/sonar-web/design-system/src/components/avatar/GenericAvatar.tsx +++ b/server/sonar-web/design-system/src/components/avatar/GenericAvatar.tsx @@ -32,7 +32,12 @@ export interface GenericAvatarProps { size?: Size; } -export function GenericAvatar({ className, Icon, name, size = 'sm' }: GenericAvatarProps) { +export function GenericAvatar({ + className, + Icon, + name, + size = 'sm', +}: Readonly<GenericAvatarProps>) { const theme = useTheme(); const text = name.length > 0 ? name[0].toUpperCase() : ''; |